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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-22-2008, 03:19 PM
Junior Member
 
Join Date: Jan 2008
Posts: 13
Question About dynamic routing

I setup my router to accept URL in this format. http: //domain.com /value1/value2 and also with following router and route to specified location.

$route = new Zend_Controller_Router_Route(
':value_1/:value_2',
array(
'controller' => 'water',
'action' => 'fill'
));

Besides, I want to set my program to accept more than 2 values. e.g. http: //domain.com/ value1/value2/valu3/value4 but only regard as 2 parameters. i.e. value 1 and "value2/valu3/value4". I means that "value2/value3/value4" is the one parameter. not 3 separater parameters. and then route to specified controller and action. How to set it? and also, how to get url? thanks a lot.

Last edited by tommy : 02-22-2008 at 03:23 PM.
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 09:13 PM.