Show
Ignore:
Timestamp:
02/27/08 00:50:21 (11 months ago)
Author:
aarkerio
Message:

Remove section model

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/components/portal.php

    r284 r289  
    77 * @license GPLv3 
    88 **/ 
    9 App::import('Model', 'Section'); 
    109App::import('Model', 'Entry'); 
    1110App::import('Model', 'Quote'); 
     
    2726 public function statics()  
    2827 { 
    29       
    30      $Element["Sec"]         = $this->sections(); 
    3128     $Element["Lentry"]      = $this->lastEntries(); 
    3229     $Element["Quote"]       = $this->randomQuote(); 
     
    3835 } 
    3936  
    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  
    5537 private function lastEntries() { 
    5638