Пример #1
0
 /**
  * Prepare render hook.
  *
  * @return  void
  */
 protected function prepareRender()
 {
     parent::prepareRender();
     $this['grid'] = $this->getGridHelper($this->gridConfig);
     $this['filterForm'] = $this->get('FilterForm');
     $this['batchForm'] = $this->get('BatchForm');
     if ($errors = $this['state']->get('errors')) {
         $this->addMessage($errors);
     }
     // We don't need toolbar in the modal window.
     if ($this->getLayout() !== 'modal') {
         $this->addToolbar();
         $this->addSubmenu();
         $this['sidebar'] = \JHtmlSidebar::render();
         $this->setTitle();
     }
 }
Пример #2
0
 /**
  * Prepare render hook.
  *
  * @return  void
  */
 protected function prepareRender()
 {
     parent::prepareRender();
     $data = $this->getData();
     $data->grid = $this->getGridHelper($this->gridConfig);
     $data->filterForm = $this->get('FilterForm');
     $data->batchForm = $this->get('BatchForm');
     if ($errors = $data->state->get('errors')) {
         $this->flash($errors);
     }
     // We don't need toolbar in the modal window.
     if ($this->getLayout() !== 'modal') {
         $this->addToolbar();
         $this->addSubmenu();
         $data->sidebar = \JHtmlSidebar::render();
         $this->setTitle();
     }
 }