コード例 #1
0
ファイル: view.html.php プロジェクト: svenbluege/com_localise
 /**
  * Display the view
  *
  * @return  void
  */
 function display($tpl = null)
 {
     // Get the data
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->form = $this->get('Form');
     LocaliseHelper::addSubmenu('languages');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     // Set the toolbar
     $this->addToolbar();
     $this->sidebar = JHtmlSidebar::render();
     // Display the view
     parent::display($tpl);
 }