Hi all,

there's one thing I'm always struggling with, and that is registering
new routes dynamically in sf 1.0.
For example, my current site has product categories, and I would like
to add a new route for each category so that I get urls like

/category1
/category2
etc.

I know I can just do
/categories/category1
/categories/category2

but for something this central to the site I would like to use the
first solution.
Now, in sf1.0 it seems the best time to add these routes would be the
config.php file in the current app directory, but if I add the routes
after the call to sfCore::bootstrap(), the current route will already
be determined (disregarding my routed). If I try to add the routes
before the call, symfony has not been initialized enough to understand
the command.

How should I go about adding those routes? Please keep in mind that I
need to use the ORM as well, in order to get a list of the current
categories..

Thanks for your help,
and have a great day.

Daniel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to