Category:

Redirect HTTP to HTTPS in Cakephp3

If you are building CakePHP application and want to move all traffic to HTTPS you can follow bellow simple steps without making any change in .htaccess  file Step 1. Edit AppController to make change use Cake\Event\Event; Step 2. Load security component public function initialize() { parent::initialize(); $this->loadComponent(‘Security’, [‘blackHoleCallback’ => ‘forceSSL’]); $this->loadComponent(‘RequestHandler’); $this->loadComponent(‘Flash’); $this->loadComponent(‘Cookie’); } Step […]

Continue Reading
Posted On :
Category:

PHP function to generate Slug

Here is simple function to generate slug in php. You can copy paste this function and generate slug by passing string in it. function slugify($text){ // replace non letter or digits by – $text = preg_replace(‘~[^\pL\d]+~u’, ‘-‘, $text); // transliterate $text = iconv(‘utf-8’, ‘us-ascii//TRANSLIT’, $text); // remove unwanted characters $text = preg_replace(‘~[^-\w]+~’, ”, $text); // […]

Continue Reading
Posted On :
Category:

Increase Android Studio Speed

Some time while we creating project in android studio the main issue we faced is speed and performance. So here is solution which i use to solve this issue. For Ubuntu Users Go to location where you install your android studio eg. /home/jgd/Drive/work/software/android-studio/bin Now open terminal on same location by right click and in terminal write […]

Continue Reading
Posted On :
Category:

Send email in cakephp 3

If you are working with cakephp 3 and need to send email then this tip help you to send email. Step 1. Go to your app.php and find EmailTransport and add your SMTP details ‘EmailTransport’ => [ ‘default’ => [ ‘className’ => ‘Mail’, // The following keys are used in SMTP transports ‘host’ => ‘My_HOST’, ‘port’ => […]

Continue Reading
Posted On :
Category:

Unistall software in linux using Command line

In this tips i will explain you how to remove software in linux using CMD (Command line). Follow simple steps. Step 1. Open terminal from menu or press ctrl+alt+t. Step 2. Enter command to get list of installed software. dpkg –list Step 3. Now run command to remove software sudo apt-get –purge remove your_application_name when you […]

Continue Reading
Posted On :
Category:

Setup vsftpd on your Ubuntu server

Last updated on October 10th, 2016 at 11:49 amIn this tip i will explain you how to setup FTP server on your.  Follow simple steps to configure FTP on server. Step 1. First install vsftpd on your server sudo apt-get install vsftpd Step 2. Now open and edit vsftpd.conf and change some setting in it anonymous_enable=NO […]

Continue Reading
Posted On :
Category:

Enable Debug Kit in Cakephp 3

Last updated on May 26th, 2018 at 03:10 pmThis tip helps you enable your CakePHP 3 debug kit follow simple steps to enable your debug kit. Enable Debug Kit in CakePHP 3 Step 1. Open terminal and run following command, before enter below command go to the root directory of your project  composer.phar require –dev cakephp/debug_kit […]

Continue Reading
Posted On :