View Single Post
  #10 (permalink)  
Old 04-25-2008, 05:38 PM
boran boran is offline
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default

Hi,

I have a similar problem, that I've been banging my head on all day. I've new to ZF so I may be making a simple mistake.

In my .htaccess I also have:
Quote:
RewriteEngine on
RewriteBase /
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
I have no special routes, just:
Zend_Controller_Front::run('../application/controllers')
in index.php.

My IndexController works, and I think that my RewriteRule is fine because http://myhost/mydir/index and http://myhost/mydir/index/index both work correctly, calling ../application/views/scripts/index/index.phtml and the indexAction() of IndexController respectively.

Note: http://myhost/mydir is the base URL where .htaccess and index.php are.

Now, If I call http://myhost/mydir/login, it does not call LoginController.php or ../application/views/scripts/login/login.phtml (as I would have hoped), I get an error in the browser:
Quote:
The requested URL /index.php was not found on this server.
I've read most of the ZF manual and have done much googling - is there a way of tell the Zend_Controller_Front to trace/log its decisions so I can see what it receives, where its is looking, for what etc.? the Log class doesn't see to be for that either.

thanks in advance.
Reply With Quote