Exemple #1
0
 public function display($tpl = null)
 {
     // Set the toolbar
     $this->addToolBar();
     // Ensure that jQuery framework is loaded
     JHtml::_("jquery.framework");
     // Load the submenu
     $this->addSubmenu("dashboard");
     $this->sidebar = JHtmlSidebar::render();
     // Display the template
     parent::display($tpl);
 }
Exemple #2
0
 /**
  * Method to display the view.
  *
  * @param   string $tpl A template file to load. [optional]
  * @return  mixed  A string if successful, otherwise a JError object.
  */
 public function display($tpl = null)
 {
     $this->items = $this->get("Items");
     $this->pagination = $this->get("Pagination");
     $this->state = $this->get("State");
     $this->filterForm = $this->get("FilterForm");
     $this->activeFilters = $this->get("ActiveFilters");
     // Load the submenu
     $this->addSubmenu("enquiries");
     $this->sidebar = JHtmlSidebar::render();
     $this->addToolbar();
     // We need jQuery to be loaded before our scripts
     JHtml::_("jquery.framework");
     $document = JFactory::getDocument();
     $document->addScript(JUri::base(true) . "/components/com_foxcontact/js/enquiries.min.js");
     parent::display($tpl);
 }