/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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'));