Exemple #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);
 }
Exemple #2
0
 /**
  * Constructor
  *
  * @param   array  $config  A named configuration array for object construction.
  */
 public function __construct($config = array())
 {
     // Display only the component output
     JFactory::getApplication()->input->def('tmpl', 'component');
     parent::__construct($config);
     // Load menu model
     $model = JSNBaseModel::getInstance('Items', 'MenusModel');
     $this->setModel($model, true);
 }