Hi Noel,
Thanks for your reply. I had not tried adding my own route but have
since tried adding this rule:
foo-bar
url: /foo-bar/:action/*
param: { module: foo_bar }
as well as the changes I had already made. This did not work.
This is the output of "symfony app:routes your_app" both before and
after i added my own rule:
foo_bar GET /foo-bar.:sf_format
foo_bar_new GET /foo-bar/new.:sf_format
foo_bar_create POST /foo-bar.:sf_format
foo_bar_edit GET /foo-bar/:id/edit.:sf_format
foo_bar_update PUT /foo-bar/:id.:sf_format
foo_bar_delete DELETE /foo-bar/:id.:sf_format
foo_bar_show GET /foo-bar/:id.:sf_format
foo_bar_object GET /foo-bar/:id/:action.:sf_format
foo_bar_collection POST /foo-bar/:action/action.:sf_format
When I try to browse to /foo-bar I get this error 'The route "foo-
bar_collection" does not exist.'
Can you see what I am doing wrong?
On Mar 6, 5:15 pm, noel guilbert <[email protected]> wrote:
> Hi,
>
> It works for me.
>
> Did you create a blah-blah route in your routing.yml file ?
>
> Can you run a "symfony app:routes your_app" and check if the route exists ?
>
>
>
> On Fri, Mar 6, 2009 at 1:25 PM, IsRobot <[email protected]> wrote:
>
> > I want my admin generated module URL to be like this:
>
> > /blah-blah/index
>
> > instead of this:
>
> > /blah_blah/index
>
> > I tried to set the generator.yml route_prefix to "blah-blah" instead
> > of "blah_blah"? If I try this I get an error 'The route "blah-
> > blah_collection" does not exist.' I tried also changing the
> > routing.yml for the object to "prefix_path: blah-blah" but it did not
> > help.
>
> --
> Noël
> GUILBERThttp://www.noelguilbert.com/http://www.sensiolabs.comhttp://www.symfony-project.com
> Sensio Labs
> Tél: +33 1 40 99 80 80
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---