Re: [fw-general] Routing issues

2007-06-28 Thread Nick Howell

Ah, the latest SVN works perfectly (I should've checked that! :x). Thank you
much.

Regards,
Nick Howell


Re: [fw-general] Routing issues

2007-06-28 Thread Matthew Weier O'Phinney
-- Nick Howell <[EMAIL PROTECTED]> wrote
(on Thursday, 28 June 2007, 01:47 PM -0400):
> I believe I have found what is causing this issue.
> When I upgraded to RC3 I had the same issue as Nathan Bell. Also, I send the
> BaseUrl and the BasePath to my views and prior to RC3 they were both empty
> strings.  Using RC3 "$BaseUrl == \" and "$BasePath == /index.php".  After
> searching around a bit I found the problem in Zend_Controller_Request_Http.
> Line 327 and 328 (in the setRequestUri() method) were added in RC3 and they
> read:
> 
> } elseif (isset($_SERVER['REDIRECT_URL'])) {  // Check if using mod_rewrite
> $requestUri = $_SERVER['REDIRECT_URL'];
> 
> I found that commenting out these two lines fixed the issue. 

Ah, right -- those have actually been removed in recent SVN. Please test
and confirm. (I created a separate HTTP request object for those needing
that line.)

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Re: [fw-general] Routing issues

2007-06-28 Thread Nick Howell

Matthew,
I believe I have found what is causing this issue.
When I upgraded to RC3 I had the same issue as Nathan Bell. Also, I send the
BaseUrl and the BasePath to my views and prior to RC3 they were both empty
strings.  Using RC3 "$BaseUrl == \" and "$BasePath == /index.php".  After
searching around a bit I found the problem in Zend_Controller_Request_Http.
Line 327 and 328 (in the setRequestUri() method) were added in RC3 and they
read:

} elseif (isset($_SERVER['REDIRECT_URL'])) {  // Check if using mod_rewrite
$requestUri = $_SERVER['REDIRECT_URL'];

I found that commenting out these two lines fixed the issue.

My .htaccess file:

RewriteEngine On
# Rewrite non-multimedia to index.php
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

Hopefully this'll point someone in the right direction to solve this before
the final release so I don't have to go in and comment this out every time I
upgrade (Then again, if I must I suppose I can do a
"unset($_SERVER['REDIRECT_URL'])" but I'd rather not) :-)

Best Regards,
Nick Howell


Re: [fw-general] Routing issues

2007-06-28 Thread Matthew Weier O'Phinney
-- Nathan Bell <[EMAIL PROTECTED]> wrote
(on Wednesday, 27 June 2007, 04:22 PM -0700):
> We're seeing issues with RC3 (RC2 and RC1 work as expected):
> 
> http://example.com/controller/action routes to indexController -> 
> indexAction
> http://example.com/index.php/controller/action routes properly to 
> controllerController -> actionAction
> 
> What has changed in RC3 that could cause this?  Tried stripping our 
> bootstrap file to the bare minimum, still having issues. 
> 
> [ .htaccess ]
> RewriteEngine on
> RewriteRule !\.(js|ico|GIF|JPG|gif|jpg|png|css|swf)$ index.php
> 
> I notice at least two others have posted similiar issues here.  Anyone 
> able to fix it?

I haven't observed any issues, personally, on sites I'm developing using
latest SVN. I didn't do any changes to either the router or dispatcher
between RC2 and RC3 (other than to make sure a missing exception class
was included in the dispatcher), though I know Martel fixed at least one
issue in the router for this release.

Could you give some example code -- your bootstrap and directory layout
-- so I can try and reproduce the issue?

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


[fw-general] Routing issues

2007-06-27 Thread Nathan Bell

We're seeing issues with RC3 (RC2 and RC1 work as expected):

http://example.com/controller/action routes to indexController -> 
indexAction
http://example.com/index.php/controller/action routes properly to 
controllerController -> actionAction


What has changed in RC3 that could cause this?  Tried stripping our 
bootstrap file to the bare minimum, still having issues. 


[ .htaccess ]
RewriteEngine on
RewriteRule !\.(js|ico|GIF|JPG|gif|jpg|png|css|swf)$ index.php

I notice at least two others have posted similiar issues here.  Anyone 
able to fix it?