What about a route for just /admin/edit?
pattern: /admin/edit
_controller: SillyCMSBundle:Page:edit
On Sun, Jan 9, 2011 at 3:11 AM, Tom Boutell <[email protected]> wrote:
> Some research into my third question:
>
> I have figured out that when you call path() in twig any parameters that
> are not part of the route are added to the query string. And I've also
> figured out that I can call $this->get('request')->get('paramname') to get
> at one of those parameters.
>
> So generating a path is agnostic as to whether the route chooses to make
> something a pretty parameter or not.
>
> I am still unsure it is possible to write action methods agnostically. Does
> ->get() work for the parameters that are in the URL? And is it OK to not
> declare them as arguments to the action method, so I don't have to update
> the action method every time I tweak the formatting of the route?
>
>
> --
> 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]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
--
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc
--
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