Changeset 289 for trunk/app/controllers/components/portal.php
- Timestamp:
- 02/27/08 00:50:21 (11 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/components/portal.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/components/portal.php
r284 r289 7 7 * @license GPLv3 8 8 **/ 9 App::import('Model', 'Section');10 9 App::import('Model', 'Entry'); 11 10 App::import('Model', 'Quote'); … … 27 26 public function statics() 28 27 { 29 30 $Element["Sec"] = $this->sections();31 28 $Element["Lentry"] = $this->lastEntries(); 32 29 $Element["Quote"] = $this->randomQuote(); … … 38 35 } 39 36 40 private function sections()41 {42 43 $conditions = null;44 45 $fields = array("Section.id", "Section.order", "Section.description", "Section.img");46 47 $order = "Section.order";48 49 $this->Section = new Section;50 51 return $this->Section->findAll($conditions, $fields, $order);52 53 }54 55 37 private function lastEntries() { 56 38
