Giuseppe
Giuseppe

Reputation: 655

Zend Framework Invisible Controllers

this is a rephrasing of a question I posted yesterday. I got an answer but an incomplete one. I studied a bit and can now reformulate the question in a clear, simple way.

I create a project with Zend Framework. I get inside and I create a controller. When I try to access thr view of this new controller, it does not work. I get the "page not found" error.

I understand the problem has to do with Apache and .htaccess and that stuff. I need to know what exactly I need to know in order to get to see other pages than the main one.

G.

Upvotes: 0

Views: 144

Answers (1)

gnarf
gnarf

Reputation: 106352

Couple of ideas to try:

Have you checked the .htaccess file in the public_html folder?

A basic example for ZF:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]

Have you checked that that AllowOverride is enabled in the <Directory> configuration within your VirtualHost configuration?

   <Directory "/path/to/public_html">
     AllowOverride All
     Options FollowSymLinks
     Order Allow,Deny
     Allow From All
   </Directory>

Upvotes: 1

Related Questions