Jasmine Cheatsheet

Posted in Jasmine with tags , , , , , , , , , on July 2, 2014 by myleskadusale

Please click on the link below for the Jasmine Cheatsheet in PDF format.

Jasmine Cheatsheet Click Here

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 127.0.0.1 http://www.yourdomain.com
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
ServerName http://www.yourdomain.com

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 http://www.yourdomain.com

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

unset($model->validates[‘fieldname’]);

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

if(!$this->save())

{

debug($this->validationErrors);

die();

}

Using CakePHP with IIS7

Posted in CakePHP with tags , on July 13, 2009 by myleskadusale

Found a post the shows how to install CakePHP in IIS7 Click Here

Use memcache in CakePHP

Posted in CakePHP with tags , , , on July 13, 2009 by myleskadusale

Found a blog that shows how to use memcache in CakePHP easily.Click Here

How to get the current URL

Posted in CakePHP, CakePHP 1.2 with tags , on June 11, 2009 by myleskadusale

$this->here

How to redirect to the root of your website

Posted in CakePHP, CakePHP 1.2 with tags , , on June 11, 2009 by myleskadusale

I was having a problem in going to the root of my website and I have solved it by using the code below
$this->redirect(“/”);