perfect that's exactly what I was looking for. thx
daniel

Simon Mundy schrieb:
Hey Daniel.

* Put them in reverse order (i.e. more specific last, less-specific first). * The 'defaults' are default values for each value and may need to be escaped by " if you're using spaces or other URI characters
* The 'reqs' are regexp but can also be simple strings

Here's a sample I'm using at present:-

route.compat.route = ":controller/:action/*"
route.compat.defaults.controller = index
route.compat.defaults.action = index

route.sector.route = ":controller/:sector/:action/*"
route.sector.defaults.controller = sectors
route.sector.defaults.action = index
route.sector.defaults.sector = index
route.sector.reqs.controller = sectors

route.sectorarticle.route = ":controller/:sector/:action/:article/*"
route.sectorarticle.defaults.controller = sectors
route.sectorarticle.defaults.action = article
route.sectorarticle.defaults.article = index
route.sectorarticle.reqs.controller = sectors
route.sectorarticle.reqs.action = article

route.publication.route = ":controller/:action/:publication/*"
route.publication.reqs.controller = publications
route.publication.reqs.action = information


So when I add my config file to router, I do:-

$router = new Zend_Controller_RewriteRouter();
$router->addConfig($config, 'route');

Hope this helps

Hi all

I just discovered the nice possibility to configure all the routing via an ini file.
But couldn't find the ini guidelines for an valid configuration.

please point me to them or an short example is also appreciated.

daniel

--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124
http://www.peptolab.com





Reply via email to