|
|||
|
Hello!
I'm working on my third site using the Zend Framework and I'm having some trouble getting it working. Basically, when I enter http://www.mydomain.com/foo/bar, I see the output of my default controller. It is as if the /foo/bar portion is completely ignored. I would have hoped at least for an error where 'controller "foo" is not found'. ![]() The main lines in my index.php are: require_once 'Zend/Controller/Front.php'; $front = Zend_Controller_Front::getInstance(); $front->setControllerDirectory(Zend_Registry::get('config ')->path->controllers); $router = $front->getRouter(); $front->dispatch(); My rewrite rule is: ^[\w/\%\-\.]*(?:\.(?!(?:js|ico|gif|jpg|png|css|txt|swf)$)[\w\%]*$)? /index.php [i] I'm using isapi_rewrite and I copied the rules verbatim from my working site that's on the same server. I've tested against both RC1 and 1.0.2. What types of tests can I run to help narrow down what's wrong? Is there any way to tell Zend to print out what controller/action pairs it received? Thanks! - Bret |
![]() |
| Thread Tools | |
| Display Modes | |
|
|