Posted By

jdbartlett on 06/02/09


Tagged

cakephp


Versions (?)

Include a Model from within a CakePHP Controller


 / Published in: PHP
 

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

This code within your CakePHP Controller to include a Model.

  1. $this->loadModel('FoosFum');
  2. $this->FoosFum =& new FoosFum();

Report this snippet  

You need to login to post a comment.