I've been working on the MVC example from the official repository mvc/simple-subcontrollers
for sometimes, It's from https://github.com/phalcon/mvc/tree/master/simple-subcontrollers
My environment: ubuntu 14.04, apache2 php5.5 phalcon2.0.8
Dir Structure:
/wwwroot/
app
public
It's just the same structure of the offical repository of mvc/simple-subcontrollers
The configure of apache2
Alias /abcd "/var/wwwroot/public"
<Directory "/var/wwwroot/public">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
The .htaccess
file under public
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /abcd/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
</IfModule>
And I didn't modify any code of it except some of baseUri to "/abcd/
"
When I visit the page: https://localhost/abcd/users
, It works well!
But when I try to visit the admin page: https://localhost/abcd/admin/users
, It just says:
MyApp\Controllers\Admin\UsersController handler class cannot be loaded
How to correct it?