Archive for June, 2011

Local Domain Name in Windows

Posted in Apache, Web on June 20, 2011 by myleskadusale

This a simple tutorial on how to create a local domain name in windows using Apache.

First go to C:\Windows\System32\drivers\etc and edit the hosts file using notepad
Second add this inside the hosts file
Third go to your apache\conf\extra and edit httpd-vhosts.conf and add the text below

DocumentRoot “C:\xampp\htdocs\your_web_app_folder

Next go to apache\conf and open httpd.conf and uncomment Include conf/extra/httpd-vhosts.conf

Save everything and restart Apache

Then try to access

Neat Functions in CakePHP

Posted in CakePHP with tags on June 20, 2011 by myleskadusale

If ever you want to remove a validation temporarily for certain fields

you can use unset before saving the data


I also learned also another function to know what field validation I

violated especially when your updating your records because sometimes

it does not show the validation errors I use debug to display it