試過這個問題,但它沒有解決我的問題。 :Phalcon tutorial error PhalconException: TestController handler class cannot be loadedPhalconException:無法加載NameController處理程序類
我的應用是在AWS Ubuntu的14.0,部分頁面被工作正常,但對於幾頁,我得到這個錯誤:
PhalconException: NameController handler class cannot be loaded.
我的控制器名稱首字母大寫的!
//Setup a base URI so that all generated URIs include the "tutorial" folder
$di->set('url', function(){
$url = new \Phalcon\Mvc\Url();
$url->setBaseUri('/');
return $url;
});
我改變了我的apache2.conf文件的AllowOverride:所有:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
我的應用是在這裏項目名稱/管理/應用/:
try {
//Register an autoloader
$loader = new \Phalcon\Loader();
$loader->registerDirs(array(
'../app/controllers/',
'../app/models/',
'../app/plugins/',
))->register();
無法調試此任何人都可以幫助其他什麼cou ld是問題。?
是的,謝謝你的時間。我非常感謝你的回答。你熟悉phalcon框架嗎?我對這個有點新,你可以建議一些鏈接,我可以從中獲取更多的知識。 –
https://docs.phalconphp.com/en/3.2並使用官方論壇https://forum.phalconphp.com – Juri