link_to() is a helper. Helpers are loaded while template processing. Use it from template.
2010/2/7 Eno <[email protected]> > On Sat, 6 Feb 2010, Rodrigo Prado wrote: > > > I haved a problem. > > > > I tried to use the function link_to(): > > > > portalcepai\apps\frontend\modules\teste\actions\actions.class.php > > > > <?php > > class testeActions extends sfActions > > { > > public function executeIndex(sfWebRequest $request) > > { > > echo link_to("Create Account", "sfApply/apply"); > > } > > } > > > > When I will test the message show: > > > > Fatal error: Call to undefined function link_to() in C:\xampplite > > \htdocs\portalcepai\apps\frontend\modules\teste\actions > > \actions.class.php > > Normally one would use link_to() in a template. > > > > -- > > > -- > 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]<symfony-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- 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.
