Posts

5 Ways to Leverage Facebook and Instagram Ads for Higher Mobile App Downloads

Image
Mobile apps have become an integral part of marketing for brands across industry verticals. With an application, businesses can create a direct connection to their audience to increase engagement and brand awareness. In order to convince consumers to install your mobile app, they have to know it exists, which is where Instagram and Facebook ads come in.

A digital marketing agency with expertise in advertising mobile apps on these social media platforms can achieve a high level of success. This is especially true on Instagram, where most users view the platform on their phone. As a result, mobile app downloads happen more easily with just one tap.

Instagram is also a newer ad platform, which means brand competition is lower than on Facebook. On the other hand, while consumers prefer ease of use, they also gravitate toward familiar platforms like Facebook. For businesses, this means access to a larger, varied audience.

The following tips will assist you in making decisions that work best…

Using components in Cakephp 3+

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27<?phpnamespaceApp\Shell;useCake\Console\Shell;useCake\Controller\Component;useCake\Controller\ComponentRegistry;useApp\Controller\Component\YourComponent;classYourShellextendsShell{publicfunctioninitialize(){parent::initialize();$this->Your=newYourComponent(newComponentRegistry());}publicfunctionyourMethod(){$this->Your->component_method($params1);}}?>

Creating robot.txt for CakePHP

What is robots.txt?Robots.txt is a text file webmasters create to instruct web robots (typically search engine robots) how to crawl pages on their website. 

To learn more and see examples of robots.txt : https://moz.com/learn/seo/robotstxt

Cakephp - MissingControllerException Controller class Robots.txtCreate the robots.txt in your webroot/directory.

CakePHP Change Default Timezone Set

Set timezone in App/Config/bootstrap.php (Cakephp 2.6+) Set timezone in config/bootstrap.php (Cakephp 3)

1 2 3 4 5 6 7 8<?php/* * Set server timezone to UTC. You can change it to another timezone of your * choice but using UTC makes time calculations / conversions easier. * Check http://php.net/manual/en/timezones.php for list of valid timezone strings. */date_default_timezone_set('Asia/Manila');?>
Check http://php.net/manual/en/timezones.php for list of valid timezone strings.

Custom favicon sizes for CakePHP

Generate your icon here for different sizes :https://www.favicon-generator.org/

Put your images/icons inside webroot/ico directory. If you use theme/plugin, put it inside the webroot/ico of the theme


Open your default.ctp and put this code inside <head></head>:



1 2 3 4 5 6 7 8 9 10 11 12<head> <?phpecho$this->Html->meta('android-icon-36x36.png','/ico/android-icon-36x36.png',['type'=>'icon']);echo$this->Html->meta('apple-icon-57x57.png','/ico/apple-icon-57x57.png',['type'=>'icon','sizes'=>'57x57']);echo$this->Html->meta('apple-icon-72x72.png','/ico/android-icon-72x72.png',['type'=>'icon','sizes'=>'72x72']);echo$this->Html->meta('apple-icon-76x76.png','/ico/apple-icon-76x76.png',['type'=>'icon','sizes'=>'76x76']);echo$this->Html->meta…

GET THE DATABASE SIZE FROM THE MYSQL QUERY BROWSER

Run the below query you can get the Data Base Size in MySQL. 

If you run the query which is given below in MySQL Query Browser then you will get the two columns first will display the Data Base Name and the second will display the Data Base Size in MB. 




This will display list of all database :

1 2SELECTtable_schema"Data Base Name",sum(data_length+index_length)/1024/1024"Data Base Size in MB"FROMinformation_schema.TABLESGROUPBYtable_schema;


This will display specific database db_name:

1 2SELECTtable_schema"Data Base Name",sum(data_length+index_length)/1024/1024"Data Base Size in MB"FROMinformation_schema.TABLESWHEREtable_schema="db_name"

Ajax Request to PHP

Client Side
1 2 3 4 5 6 7 8 9 10 11 12 13$.ajax({url:'/path/to/server',type:'POST',data:{first_name:firstName,last_name:lastName,address:address,city:city,country:country},success:function(result){varobj=jQuery.parseJSON(result);if(obj.result=='OK'){alert(obj.message);}else{alert(obj.message);}}});

Server Side
response from php file
1echojson_encode(['result'=>'OK','message'=>'This is message']);