reference/yaf/yaf-controller-abstract.xml
73fae4ee51b644b72028e610abefefced57c18ad
...
...
@@ -92,6 +92,7 @@
92
92

93
93
94
94
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
95
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.yaf-controller-abstract')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])" />
95
96
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.yaf-controller-abstract')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
96
97
</classsynopsis>
97
98
<!-- }}} -->
...
...
@@ -107,7 +108,7 @@
107
108
<term><varname>actions</varname></term>
108
109
<listitem>
109
110
<para>
110
-
You can also define a action method in a separate PHP script by using
111
+
You can also define an action method in a separate PHP script by using
111
112
this property and <classname>Yaf_Action_Abstract</classname>.
112
113
<example>
113
114
<title>define action in a separate file</title>
...
...
@@ -121,7 +122,7 @@ class IndexController extends Yaf_Controller_Abstract {
121
122
);
122
123

123
124
/* action method may have arguments */
124
-
public indexAction($name, $id) {
125
+
public function indexAction($name, $id) {
125
126
/* $name and $id are unsafe raw data */
126
127
assert($name == $this->getRequest()->getParam("name"));
127
128
assert($id == $this->_request->getParam("id"));
...
...
@@ -137,8 +138,8 @@ class IndexController extends Yaf_Controller_Abstract {
137
138
<![CDATA[
138
139
<?php
139
140
class DummyAction extends Yaf_Action_Abstract {
140
-
/* a action class shall define this method as the entry point */
141
-
public execute() {
141
+
/* an action class shall define this method as the entry point */
142
+
public function execute() {
142
143
}
143
144
}
144
145
?>
145
146