I am having trouble working with PhalconTutorial 1. In the end, I cloned its version on Githubto make sure I didn't miss anything; still getting the same behavior from this.
Pointing the browser to localhost / test, as shown in the tutorial, gives: `
"PhalconException: TestController handler class cannot be loaded".
Switching to localhost/test.php, however, loads "Hello!" test message.
Falcon is shown in phpinfo() and get_loaded_extensions().
I get this behavior even by cloning a tutorial from
https://github.com/phalcon/tutorial .
I assume that it apachedoesnβt rewrite URLs correctly, as described in Phalconphp routes do not work , but my problem is not like the one there.
Htaccess file contents:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
and
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
</IfModule>
source
share