Ejemplo n.º 1
0
<?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();
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 /**
  * display the edit form
  * @return void
  */
 function edit()
 {
     JRequest::setVar('view', 'image');
     JRequest::setVar('hidemainmenu', 1);
     parent::display();
 }