It looks like you're missing an apache setting. In order for the routing to
work, you must have .htaccess file in your public folder (which Zend_Tool
provides) *and* you have to allow that directory to use .htaccess files in
your apache config.
Add this to your apache config and restart apache:
<Directory /var/www/ZendDemo/public>
AllowOverride All
</Directory>
Take a look at this page for more info:
http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride
--
Hector
On Thu, Aug 13, 2009 at 4:00 PM, rvanderley <[email protected]> wrote:
>
> Using the latest zend framework minimal installation version 1.9
>
> I create a fresh zend framework project using Zend_Tool:
>
> cd /var/www
> zf create project ZendDemo
>
> and then use Zend_Tool to create a new controller named 'foo'
>
> cd ZendDemo
> zf create controller Foo
>
> and then in apache2 set my doc-root to the public folder of the new project
>
> in the httpd.conf:
> DocumentRoot /var/www/ZendDemo/public
>
>
> how do I make the following URL get routed to the index action of
> FooController ?
> http://localhost/foo
>
> from what I read... assuming Zend_Tool does its magic and throw no
> errors...
> the front controller should already be routing me there, but it's not. I
> keep getting 404 errors.
>
> I have even tried adding a directory and index.php file to show "phpinfo()"
> like such:
> /var/www/ZendDemo/public/foo/index.php
> alas! 404 error.
>
> I want Zend to do the routing. which it clearly takes control of, but why
> is
> it not routing it to the index action of the foo controller?
>
> please help. I am at the end of my rope with this thing.
> --
> View this message in context:
> http://www.nabble.com/Zend-controllers-help-tp24961591p24961591.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>