Joining multiple tables in CakePHP using bindModel method
One of the most powerful features of CakePHP is the ability to link relational mapping provided by the model. In CakePHP, the links between models are handled through associations. The associations are...
View ArticleCakePHP – Accessing a model in AppController or in any Controllers
Sometimes, or very rarely we might need to access a model in AppController (Application Controller). This could be for fetching values from a table and make it available for all the controllers in the...
View ArticleCakePHP – Auth Login Redirect Problem with Plugins
The Auth Component in CakePHP redirects the user to the log-in page when a user tries to access any protected pages in the application. The default log-in page is set by defining the loginAction...
View ArticleCakePHP – Search for records between two dates inclusively
Often we search for records in a database table for fetching records that were created or modified on a particular date or between two dates. We match against a date field and add multiple conditions...
View Article
More Pages to Explore .....