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


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.