0
我是Zend模块化应用程序的新手。我有一个API控制器,我想从这个控制器调用其他模块。例如,数据上传到这个地址:Zend Framework模块化应用程序?
http://localhost/api/addTask
我添加了一个自定义路由重定向所有请求API /指数
现在,我怎么能说一个模块或其它的indexAction方法?
例如:
function indexAction()
{
$params = $this->getRequets()->getParams();
$controller = $params[0];//I know that there is issues with this line but keep going...
//module name is addTask
//call to module or controller addTask
}
由于提前
这将是多大在ZF 2.0.x中更容易完成 –