Zend Modular Application は初めてです。API コントローラーがあり、このコントローラーから他のモジュールを呼び出したいと考えています。たとえば、次のアドレスにデータを投稿します。
http://localhost/api/addTask
すべてのリクエストを api/index にリダイレクトするカスタム ルートを追加しました
。
例えば:
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
}
前もって感謝します