You need to evaluate your routes into a module/action tuple, see the
last
example on this page:
http://pookey.co.uk/wordpress/archives/80-playing-with-symfony-routing-without-symfony
You can probably load the routes separately from the YAML as well.

     gabriel

On Jun 3, 12:24 am, comb <sa...@gmx.net> wrote:
> yeah but how can I check if the current page is the same as the user
> comes from?
>
> On 2 Jun., 21:20, Eno <symb...@gmail.com> wrote:
>
>
>
> > On Wed, 2 Jun 2010, comb wrote:
> > > In a executeIndex(...) I want to redirect to the referrer, but only if
> > > the referrer is not the current action.
> > > How can I do that?
>
> > > //...
> > >            $ref = $request->getReferer();
> > >            if ($ref != ...what do I need HERE?...)
> > >            {
> > >                    $this->redirect(empty($ref)?'@homepage':$ref);
> > >            }
> > >    }
> > > //...
>
> > > problem is that the getReferer() method returns not a route but a
> > > string with the whole http-uri incl. server etc..
>
> > That's right - that's what a referrer string 
> > is.http://en.wikipedia.org/wiki/HTTP_referrer
>
> > --

-- 
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 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