Hi,
out of interest, why does a generator.yml driven module ignore the
route settings in config/route.yml and needs the settings defined in
apps/app/modules/module/config/generator.yml - also the setting in
generator.yml appears to be somehow wrong
Example:
I have in
apps/backend/config/routing.yml
person_staff:
class: sfDoctrineRouteCollection
options:
model: Person
module: staff
prefix_path: /staff
column: id
with_wildcard_routes: true
But when I go to domain.name/backnd_dev.php/staff I get an error message:
The route "_new" does not exist.
Only when I add
route_prefix to generator.yml of the module
generator:
class: sfDoctrineGenerator
param:
model_class: Person
theme: admin
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: person_staff
with_doctrine_route: true
actions_base_class: sfActions
it works.
Any help with understanding this appreciated
Kind Regards,
Jochen
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en