Do you have a route set up for your homepage, something like:
homepage:
url: /
param: { module: homepage, action: index }
Try also redirecting to $this->redirect('@homepage') it's much more
efficient.
gabriel
On Aug 26, 5:48 pm, torok84 <[email protected]> wrote:
> Hi,
>
> I noticed that
> $this->redirect("/") in actions or url_for("/") in views when called
> from an url likehttp://host/frontend_dev.php/somethingthrow away the
> frontend_dev.php and generate url likehttp://host/. While
> url_for("module/action") will generate an url containing
> frontend_dev.php. url_for("") will generatehttp://host/frontend_dev.php
> and this is nice, because when I am testing I want to keep the
> frotnend_dev.php in my URL. With $this->redirect seems impossible to
> get the same result, since $this->redirect("") throws an exception. I
> am quite new to symfony so maybe I am wrong. Would'n be better to make
> redirect and url_for always include frontend_dev.php if it is prenset
> in the URL of the current page? Or am I missing something?
>
> Thanks
> Paolo
--
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