0
我使用AvalancheImagine束生成縮略圖出現此錯誤:Symfony的2:AvalancheImagineBundle - 無法找到控制器 「imagine.controller:過濾器」
Unable to find controller "imagine.controller:filter".
500 Internal Server Error - InvalidArgumentException
束在AppKernel.php
註冊。路由和配置yml文件被更新,但是當我在開發環境中加載資源的url時,仍然出現此錯誤。
在開發模式下輸出:
protected function createController($controller)
{
if (false === strpos($controller, '::')) {
throw new \InvalidArgumentException(sprintf('Unable to find controller "%s".', $controller));
}
list($class, $method) = explode('::', $controller, 2);
at ControllerResolver ->createController ('imagine.controller:filter')
in E:\workspace\***\app\cache\dev\classes.php at line 5297 -+
at ControllerResolver ->getController (object(Request))
in E:\workspace\***\src\Inhouse\MainBundle\Event\BeforeControllerActionListener.php at line 32 -+
我composer.json
:
"avalanche123/imagine-bundle": "dev-master",
錯誤在開發模式中說了什麼? – j0k 2013-03-11 10:31:23
@ j0k - 更新的問題 - 它似乎與我的symfony版本2.1.4不兼容 – 2013-03-11 10:37:49
你在composer.json中定義了什麼來檢索AvalancheImagineBundle? – j0k 2013-03-11 10:39:00