Mininal use of $uses variable to load models CakePHP loads all models specified in var $uses array when a controller action is called. By loading a model cakephp creates the schema/structure of the table and also caches it for further…
Category: CakePHP
Multiple validation rules for a single field in cakephp
Cakephp framework provides a strong model validation mechanism. Here is the quick overview of multiple validation rules applied to a single field. Let say we are using “User.password” and “User.password2” fields to accept/confirm password while registering to a site. We…
TinyMce and Captcha collide in my cakephp application
I was struck in a very strange problem today. I was using captcha component to create and set a captcha session and image for view section. Next is the snippet of create function which i used to load component. I…