Exemple #1
0
 /**
  * Display method
  *
  * @param   string  $tpl  The template name
  *
  * @return  void
  */
 public function display($tpl = null)
 {
     $model = $this->getModel('ctypes');
     $this->items = $model->getItems();
     $this->state = $model->getState();
     $this->pagination = $model->getPagination();
     $this->filterForm = $model->getForm();
     parent::display($tpl);
 }
Exemple #2
0
 /**
  * Display method
  *
  * @param   string  $tpl  The template name
  *
  * @return  void
  */
 public function display($tpl = null)
 {
     $model = $this->getModel('categories');
     $this->items = $model->getItems();
     $this->state = $model->getState();
     $this->pagination = $model->getPagination();
     $this->filterForm = $model->getForm();
     // Preprocess the list of items to find ordering divisions.
     if ($this->items) {
         foreach ($this->items as &$item) {
             $this->ordering[$item->parent_id][] = $item->id;
         }
     } else {
         $this->ordering = null;
     }
     parent::display($tpl);
 }
Exemple #3
0
 /**
  * Display method
  *
  * @param string $tpl The template name
  *
  * @return void
  */
 public function display($tpl = null)
 {
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     parent::display($tpl);
 }