This is a note of caution if you use "Router::parseExtensions();" More
specifically, if you think you might want to use parseExtensions at
some point in your project.

I was using requestAction method with a url like this:
$this->requestAction('/users/view/j.smith');
My view method blueprint looks like this: function view($alias){}

Everything worked fine until I added "Router::parseExtensions();" to
my routes.php file. With parseExtensions turned on, cake treats
".smith" as the extension, and therefore removes .smith from the get
variable. So $alias = "j" instead of "j.smith".

If you append a VALID extension, like this:
$this->requestAction('/users/view/j.smith.html');
it works fine; $alias = "j.smith"

When you think about it, this behavior is not surprising, but it just
might catch you off guard and surprise you!

cook


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to