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…
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…
Show hidden files and folders not working in window xp?
I tried to enable “show hidden files and folder” option in my window xp but after clicking “apply” and “ok” when i returned back to the folder to view hidden files it did not show the hidden files. I tried…
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…
Windows keyboard shortcuts (hot keys)
This post lists keyboard shortcuts that you can use with Windows. I have picked it from Microsoft website for my personal reference. You too can use it. ;)
Convert month name to month number in php
While working with a CJ run reports script i needed to convert “month name” into “month number” so i could store it in the database in date format. After doing some cleaning stuff i was ending with the month name,…