From aeac24ae67f87e60b05c8e66f03616d434c9be95 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Fri, 22 Feb 2013 08:55:38 +0000 Subject: [PATCH] correct example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329535 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/yaf/tutorials.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/yaf/tutorials.xml b/reference/yaf/tutorials.xml index 2cd0c579fb..cb5e385433 100644 --- a/reference/yaf/tutorials.xml +++ b/reference/yaf/tutorials.xml @@ -106,7 +106,9 @@ foo=bar class IndexController extends Yaf_Controller_Abstract { /* default action */ public function indexAction() { - $this->view->word = "hello world"; + $this->_view->word = "hello world"; + //or + // $this->getView()->word = "hello world"; } } ?>