Return to Snippet

Revision: 10682
at September 11, 2010 08:10 by sveggiani


Updated Code
if (App::import('Model', 'Sheet')) {
   $this->Sheet = new Sheet();
}


// Update, Cakephp 1.3
$this->loadModel('Article');
$recentArticles = $this->Article->find('all', array('limit' => 5, 'order' => 'Article.created DESC'));

Revision: 10681
at January 9, 2009 08:27 by sveggiani


Initial Code
if (App::import('Model', 'Sheet')) {
   $this->Sheet = new Sheet();
}

Initial URL


Initial Description


Initial Title
import/load a model in Cakephp

Initial Tags
cakephp

Initial Language
PHP