예제 #1
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     /*
     $model = $this->getModel();
     $this->state = $model->getState();
     $this->items = $model->getItems();
     $this->pagination = $model->getPagination();
     */
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new Exception(implode("\n", $errors));
     }
     SampleHelper::addSubmenu('movies');
     $this->addToolbar();
     $this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }