reference/yaf/yaf_view_simple/assign.xml
73fae4ee51b644b72028e610abefefced57c18ad
...
...
@@ -63,6 +63,7 @@ class IndexController extends Yaf_Controller_Abstract {
63
63
$this->getView()->assign("foo", "bar");
64
64
$this->_view->assign( array( "key" => "value", "name" => "value"));
65
65
}
66
+
}
66
67
?>
67
68
]]>
68
69
</programlisting>
...
...
@@ -77,7 +78,7 @@ class IndexController extends Yaf_Controller_Abstract {
77
78
</head>
78
79
<body>
79
80
<?php
80
-
foreach ($this->_tpl_vars as $name => value) {
81
+
foreach ($this->_tpl_vars as $name => $value) {
81
82
echo $$name; // or echo $this->_tpl_vars[$name];
82
83
}
83
84
?>
84
85