Ejemplo n.º 1
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $model = JModelLegacy::getInstance('Items', 'MenusModel');
     $this->_document = JFactory::getDocument();
     $this->_addAssets();
     $this->setModel($model, true);
 }
Ejemplo n.º 2
0
 /**
  * Display the view
  *
  * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.
  *
  * @return  void
  */
 public function display($tpl = null)
 {
     // Include the component HTML helpers.
     $this->_path['template'] = array(JPATH_ROOT . '/plugins/system/jsnframework/libraries/joomlashine/menuitems/tmpl');
     JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
     // Load assets
     JSNBaseHelper::loadAssets();
     parent::display($tpl);
     echo JSNHtmlAsset::loadScript('jsn/selectorFilter', array(), true);
 }