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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-16-2007, 07:03 AM
Junior Member
 
Join Date: Jul 2007
Posts: 11
Default MVC ignoring my parameters?

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
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 06:15 AM.