What is the difference between $c->uri_for and $c->uri_for_action methods of Catalyst.
Which one to use? And why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found below difference between
$c->uri_forand$c->uri_for_actionConsider
Othercontroller.pm
Yourcontroller.pm
In case of
$c->uri_forthe url changes toHowever for
$c->uri_for_actionthe url changes toSo the namespace gets added in case of
uri_for.