correct example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329535 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Xinchen Hui 2013-02-22 08:55:38 +00:00
parent 35d4da3258
commit aeac24ae67

View file

@ -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";
}
}
?>