Include a Model from within a CakePHP Controller


/ Published in: PHP
Save to your folder(s)

This code within your CakePHP Controller to include a Model.


Copy this code and paste it in your HTML
  1. $this->loadModel('FoosFum');
  2. $this->FoosFum =& new FoosFum();

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.