Hi all,

I'm defining these routes all of these routes in config.ini and wondering if
there is a way to combine them.

routes.students.route = "students/:link"
routes.students.defaults.controller = "students"
routes.students.defaults.action = "article"
routes.teachers.route = "teachers/:link"
routes.teachers.defaults.controller = "teachers"
routes.teachers.defaults.action = "article"
routes.resources.route = "resources/:link"
routes.resources.defaults.controller = "resources"
routes.resources.defaults.action = "article"

Basically the general layout of the site is /controller/variable. 

So if someone goes to www.example.com/students they will of course get the
index action. 

If someone goes to www.example.com/students/how-to-enroll they will get the
'article' action and that action will search through the students table and
retrieve the row matching 'how-to-enroll'.

Is there a better default way to tell ZF if :link is set always use the
article action?


Thanks for your time!

Thom
-- 
View this message in context: 
http://www.nabble.com/Can-I-combine-these-routes--tp22685303p22685303.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to