Hi everyone

I have typical segment routes to be able to implement CRUD operations for
examlpe 

route' => '/booklist[/:action][/:id] 

which (booklist) consists of owners, books and some other stuff everything
works great but now I want to change it a bit. 

I have a form for adding new records to db which consists mainly of two
select fields ownerid and bookid which are list of all books and owners in
db.

I want to be able to pass ownerid or bookid to the form through route so
that form automatically sets value to corresponding select fields.
Unfortunately this route 

'route' => '/booklist[/:action[/:id][/:ownerid][/:bookid]]' 

gets me nowhere. if I write $this->url('booklist', array('action' => 'add', 
'ownerid' => somevalue) it puts this somevalue to id not ownerid

How should i create routes withou creating route for every single crud
operations



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Routing-with-optional-params-tp4660656.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to