Archive for CakePHP

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();

}

Advertisements

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(“/”);

Understanding CakePHP Model Associations

Posted in CakePHP, CakePHP 1.2 with tags , , on May 22, 2009 by myleskadusale

A clear and concise tutorial for understanding CakePHP Model Associations
Click Here

Sending any binary files to the user in CakePHP using Media Views

Posted in CakePHP, CakePHP 1.2 with tags , , on May 19, 2009 by myleskadusale

For more info Click here