Return to Snippet

Revision: 14388
at June 2, 2009 12:04 by jdbartlett


Updated Code
$this->loadModel('FoosFum');
$this->FoosFum =& new FoosFum();

Revision: 14387
at June 2, 2009 11:53 by jdbartlett


Initial Code
loadModel('FoosFum');
$this->FoosFum =& new FoosFum();

Initial URL
http://sliceofcake.wordpress.com/2007/09/20/loadmodel/

Initial Description
This code within your CakePHP Controller to include a Model.

Initial Title
Include a Model from within a CakePHP Controller

Initial Tags
cakephp

Initial Language
PHP