On my controller I have the following Action:
public function indexAction()
{
$teamDao = new TeamsDao();开发者_运维百科
return $teamDao->showName(3);
}
So, I'm returning this team name, and my question is, how can I display this team name on the view ?
Thanks a lot, MEM
Put this in your controller:
$this->view->teamName = $teamDoa->showName(3);
And this in your view
<?php echo $this->teamName?>
精彩评论