Example #1
0
 public function configure()
 {
     $this->config['defaultbanner'] = array();
     if (!empty($this->config['defaultbanner_id'])) {
         $this->config['defaultbanner'][] = new expFile($this->config['defaultbanner_id']);
     }
     parent::configure();
     $banners = $this->banner->find('all', null, 'companies_id');
     assign_to_template(array('banners' => $banners));
 }
Example #2
0
 public function configure()
 {
     parent::configure();
     assign_to_template(array('sortopts' => $this->sortopts));
 }