<?php // No direct access defined('_JEXEC') or die; use Accordeonmenuck\CKView; use Accordeonmenuck\CKFof; class AccordeonmenuckViewItems extends CKView { protected $menus; /** * Display the view */ public function display($tpl = 'default') { $user = CKFof::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; } $this->items = $this->get('Items'); $type = $this->input->get('type', 'menu', 'cmd'); $tpl = file_exists('/tmpl/' . $type . '.php') ? $type : 'default'; $tpl = $type; // TEST parent::display($tpl); } }