Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-21-2008, 10:45 PM
Junior Member
 
Join Date: Mar 2008
Posts: 5
Default Modules and URL Rewriting

I'm setting up ZF with a typical dir structure to support modules, eg

application
__+ modules
_____+ default
________+ controllers
________+ views
_____+ mymodule
________+ controllers
________+ views

These all work, taking me to my default index controller:
http://photon
http://photon/index.php/default
http://photon/index.php/default/index

But these give me a 404:
http://photon/default
http://photon/default/index

In my bootstrapper, rather than using $front->setControllerDirectory() I'm using the more general

$front->addModuleDirectory('../application/modules');

so that I don't have to edit my bootstrapper every time I add a module.

I know I'm missing something really basic here, probably involving Zend_Controller_Router_Route, but for some reason I'm just not seeing it. Can anyone point out what I'm missing?

thanks,
Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-22-2008, 09:12 PM
Junior Member
 
Join Date: Mar 2008
Posts: 5
Default

Never mind - I didn't have mod_rewrite enabled in Apache. Duh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:28 AM.