On Sun, 2010-11-21 at 21:40 +0530, Rohan M wrote:
> Dear All,
> 
> I'm trying out the examples and learning Catalyst.
> 
> Although, the scripts are working but I'm facing two problems -
> 
> 1) The $c->forward('controller/action') NOT working but
> $c->response->redirect('/controller/action') is working.
>     Any reason ? I do not see any errors on the console.

->forward returns you to where it was called after it does its thing.
You might want ->detach or ->go for something closer in behaviour to a
redirect.

http://s.coop/5gg is the section of the manual that discusses the
differences between go/visit/detach/forward.

Regards,
Denny


Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to