needsomehelp wrote:
> Hi all,
>
> I'm defining 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"
...

I think this should work (untested):

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

-- 

Brenton Alker
PHP Developer - Brisbane, Australia

http://blog.tekerson.com/

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to