Migrations is a powerful feature in CakePHP. It gives you a tool to create or import database structure and data through command line interface. CakePHP Migrations is installed by default when you install CakePHP.
Category: CakePHP
CakePHP Captcha Demo is now available via Github & Composer
CakePHP Captcha plugin for CakerPHP 3 is a very useful addition to your CakePHP app to keep submissions on your website spam free. CakerPHP 3 Captcha plugin can be installed in simple steps using composer or can be placed in…
Be careful while using Containable behavior with deep associations in CAKEPHP 2
Containable behavior is used to get selected associated records in CAKEPHP 2. It helps to speed up process of retrieving records by fetching associated data at the same time. But for deep associations from level 2 (equal to recursive =2)…
Cakephp 3.6 ajax pagination and sorting with jQuery
Cakephp comes with inbuilt pagination and sorting component and helper which work well in any app. However in order to make data tables ajax driven one might want to look at alternative solutions. One such solution is Cakephp Datatablse Plugin…
CakePHP Captcha Plugin
CakePHP Captcha plugin by me is one of the most used and trusted CakePHP captcha support since 2009. I have maintained CakePHP Captcha support throughout these years and am still committed to maintain it as long others and I found…
CakePHP captcha support for CakePHP 2.x and 3.x
Here is the latest CakePHP Captcha support for CakePHP Version upto 3.x. Download for CakePHP 3.x Download for CakePHP 2.x NOTE:For best Image Captcha results this component requires GD and Freetype support enabled. Please check your phpinfo() to know whether your server…
Saving multi-level associated data in CakePHP
In CakePHP 2 we had hasMany, saveMany, saveAssociated model methods or functions to save associated data. These functions works great with straight associations but to make them work for saving multi-level association data you need a trick.
php composer update command and status: 404 Not Found on Linux
Today I tried to update Cakephp by running php composer update on my server. I tried to follow the commands given at https://getcomposer.org/download/ under Command-line installation but it failed at the very first go. The command line code was:
Gmail SMTP in CakePHP not working? Here is a possible fix!
While working in a CakePHP application in my local computer I usually use Gmail SMTP in CakePHP to send emails from my application which are of course test emails. Previously it worked just fine with the basic settings (as specified…
How to use Router::url() to generate an URL in CakePHP 3
In CakePHP 2.x we used Router::url([]) to generate URL in any file. It works almost same with two major differennces though. The first one is that we have to call Router class manually wherever we want to use this function.