How to use redirect in form actions!

25 views
Skip to first unread message

Rollypolly

unread,
Apr 26, 2012, 10:48:10 AM4/26/12
to diem-users
Hello
please I want to use the redirect method in form actions to redirect
my page to a dmTagPlugin page. the final url should by {url}/tags/
home, but i don't know how to achieve that. I am not so versed with
symfony syntax and would appreciate help
Regards

Javier Neyra

unread,
May 11, 2012, 10:07:33 PM5/11/12
to diem-...@googlegroups.com
for redirecting u need the url (http://www.google.com) or internal uri

http://www.symfony-project.org/api/1_4/sfAction#method_redirect

the same aplies in diem... so if u have a route... u cuold use url_for
symfony helper... if u dont have, its a little bit harder...

u need the _link() helper, that helper returns u an object with a
getHref() method,

http://diem-project.org/diem-5-1/doc/en/reference-book/template-helpers

hope its helps....

2012/4/26 Rollypolly <rolly...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages