In Zend Framework, I have one controller
class TestController extends Zend_Controller_Action
{
public function indexAction()
{
}
public function getResultByID( $id )
{
return $id;
}
}
How can I call the function getResultByID in index.phtml ?
getResultByID()in the view? Why not call that method in the controller and pass the result to the view (which would be the more standard approach)?