i have a pattern in routes for a url:
Router::connect('/human+pharmaceuticals/*', array('controller' =>
'fact_sheets', 'action' => 'view'));
When i create a link using:
$html->link($data['Category']
['name'],array('controller'=>'fact_sheets','action'=>'view',
(urlencode($data['Category']['name'])));
i get the following missing controller error:
you are missing the HumanPharmaceuticalsController
I have tries to escape the "+" sign in the connect function to utilise
urlencode too - nothing works.
If i change the pattern and remove the "+" in routes to:
Router::connect('/human pharmaceuticals/*', array('controller' =>
'fact_sheets', 'action' => 'view'));
it will work but all my the urls look like:
www.companyname.com//human%20pharmaceuticals/saline+injection.
So the problem is the "+", somewhere along the line it is being
stripped (unencoded).
I walked thru the Router and i'm looking at dispatcher at the momment,
just running short of time - it would be nice if you could set a url
to automatically encode in the config file.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---