0
正如你们许多人知道的Joomla 2.5控制器从链接到新的Joomla 2.5控制器
// Create the controller
$classname = 'mycomponentController'.$controller;
$controller = new $classname();
// Perform the Request task
$controller->execute(JRequest::getVar('task'));
// Redirect if set by the controller
$controller->redirect();
改变的东西沿着
// Get an instance of the controller prefixed by the component
$controller = JController::getInstance('mycomponent');
// Perform the Request task
$controller->execute(JRequest::getCmd('task'));
// Redirect if set by the controller
$controller->redirect();
现在的Joomla 1.5以及由线使用表格,您可以通过运行链接运行任务
index.php?option=com_mycomponent&controller=specificcontroller&task=randomtask
但是,这种连接方式不适用于ne w控制器 - 没有人知道如何在Joomla 2.5中设置这个链接的格式,如果你使用的是新控制器?
谢谢!是否需要view = viewname? –
不,它不是... – Elin
Thankyou :)非常感谢 –