-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'd do:

routes.article.route = ":controller/:link"
routes.article.defaults.action = "article"
routes.article.reqs.controller = "(students|teachers|resources)"

to make sure, that no wrong controller can be called.
...................................
:  ___   _   ___ ___ ___ _ ___    :
: |   \ /_\ / __| _ \ _ (_)   \   :
: | |) / _ \\__ \  _/   / | |) |  :
: |___/_/:\_\___/_| |_|_\_|___/   :
:........:........................:
: Web    : http://www.dasprids.de :
: E-mail : m...@dasprids.de       :
: Jabber : jab...@dasprids.de     :
: ICQ    : 105677955              :
:........:........................:


Brenton Alker schrieb:
> 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"
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknR59oACgkQ0HfT5Ws789AxBwCffyXcbsgh1b/kypHWn46WnPj1
ECIAoLopLhiRnLfd2B4BO0XDvuF+psEK
=QuME
-----END PGP SIGNATURE-----

Reply via email to