We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Problems accessing the signup form

Hi, I'm new to Phalcon and am doing the tutorial as I'm a real beginner in programming. I did the tutorial as described up to where I create the SignupController.php ....

To see the output I need to call 'localhost/tutorial/public' ... Doesn't it have to work when I just call 'localhost/tutorial'?

But anyhow ... It displays the output and when I click on 'Sign up here!' I get a 404 error. As I said, I did exactly the same as described in the tutorial, but it doesn't work. Can someone please help or advise/guide me?

I hope I explained everything so far. If not please let me know what else do I need to tell..

Thanks in advance, Cheers Ondry

You should insert .htaccess file in tutorial directory.

Example:

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule  ^$ public/    [L]
    RewriteRule  (.*) public/$1 [L]
</IfModule>