<?php defined('_JEXEC') or die('Restricted access'); require_once JPATH_COMPONENT . DS . 'controller.php'; JTable::addIncludePath(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_images' . DS . 'tables'); $controller = new ImagesController(); $controller->execute(JRequest::getVar('task')); $controller->redirect();
/** * Model::beforeFilter() callback * * Used to override Acl permissions for this controller. */ public function beforeFilter() { parent::beforeFilter(); $this->modelId = isset($this->passedArgs[$this->model]) ? $this->passedArgs[$this->model] : null; }
/** * display the edit form * @return void */ function edit() { JRequest::setVar('view', 'image'); JRequest::setVar('hidemainmenu', 1); parent::display(); }