| Current Path : /home/cbequiperp/www/administrator/components/com_accordeonmenuck/views/browse/ |
| Current File : /home/cbequiperp/www/administrator/components/com_accordeonmenuck/views/browse/view.html.php |
<?php
// No direct access
defined('_JEXEC') or die;
use \Accordeonmenuck\CKView;
use \Accordeonmenuck\CKFof;
class AccordeonmenuckViewBrowse extends CKView {
function display($tpl = 'default') {
$user = JFactory::getUser();
$authorised = ($user->authorise('core.edit', 'com_accordeonmenuck') || (count($user->getAuthorisedCategories('com_accordeonmenuck', 'core.edit'))));
if ($authorised !== true)
{
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'), 403);
return false;
}
// load the items
require_once ACCORDEONMENUCK_PATH . '/helpers/ckbrowse.php';
$this->items = CKBrowse::getItemsList();
parent::display($tpl);
}
}