new to cake. Hopefully, I'm framing my question and approach in an
appropriate manner.
I have a page that I want to display specific search results and I
wish to name it with a specific URL. This URL returns the correct
results:
http://www.advancelegaljobs.com/jobs/search/radius:Massachusetts-Boston
This is the URL I wish to use:
http://www.advancelegaljobs.com/boston-legal-jobs
I've attempted numerous variations in routes.php, but none seem to
work. For example:
Router::connect('/boston-legal-jobs', array('controller' => 'jobs',
'action' => 'search', 'radius:Massachusetts-Boston'));
or
Router::connect('/boston-legal-jobs', array('controller' => 'jobs',
'action' => 'search'),
array('passedArgs'=>array('radius','Massachusetts-Boston')));
Any help would be appreciated.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment