diff --git a/reference/yaf/yaf_controller_abstract/forward.xml b/reference/yaf/yaf_controller_abstract/forward.xml
index 885c658669..6896bd4e84 100644
--- a/reference/yaf/yaf_controller_abstract/forward.xml
+++ b/reference/yaf/yaf_controller_abstract/forward.xml
@@ -77,6 +77,43 @@
+
+ &reftitle.examples;
+
+ Yaf_Controller_Abstract::forwardexample
+
+forward("login", array("from" => "Index")); // forward to login action
+ return FALSE; // this is important, this finish current working flow
+ // and tell the Yaf do not doing auto-render
+ }
+
+ // other processes
+ }
+
+ public function loginAction() {
+ echo "login, redirected from ", $this->getInvokeArg("from") , " action";
+ }
+}
+?>
+]]>
+
+ &example.outputs.similar;
+
+
+
+
+
+
+
&reftitle.returnvalues;
diff --git a/reference/yaf/yaf_controller_abstract/getrequest.xml b/reference/yaf/yaf_controller_abstract/getrequest.xml
index 0e31e9a9c7..6f5b331ebc 100644
--- a/reference/yaf/yaf_controller_abstract/getrequest.xml
+++ b/reference/yaf/yaf_controller_abstract/getrequest.xml
@@ -4,7 +4,7 @@
Yaf_Controller_Abstract::getRequest
- The getRequest purpose
+ Retrieve current request object
@@ -14,7 +14,7 @@
-
+ retrieve current request object
@@ -26,7 +26,7 @@
&reftitle.returnvalues;
-
+ Yaf_Request_Abstract instance
diff --git a/reference/yaf/yaf_controller_abstract/init.xml b/reference/yaf/yaf_controller_abstract/init.xml
new file mode 100644
index 0000000000..1bbbd75afc
--- /dev/null
+++ b/reference/yaf/yaf_controller_abstract/init.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+ Yaf_Controller_Abstract::init
+ Controller initializer
+
+
+
+ &reftitle.description;
+
+ public voidYaf_Controller_Abstract::init
+
+
+
+ Yaf_Controller_Abstract::__construct is final,
+ which means users can not override it.
+ but users can define
+ Yaf_Controller_Abstract::init, which will be
+ called after controller object is instantiated.
+
+
+
+
+ &reftitle.parameters;
+ &no.function.parameters;
+
+
+
+ &reftitle.returnvalues;
+
+
+
+
+
+
+
+
+
diff --git a/reference/yaf/yaf_controller_abstract/redirect.xml b/reference/yaf/yaf_controller_abstract/redirect.xml
index 157666c9b6..20bf635393 100644
--- a/reference/yaf/yaf_controller_abstract/redirect.xml
+++ b/reference/yaf/yaf_controller_abstract/redirect.xml
@@ -4,17 +4,17 @@
Yaf_Controller_Abstract::redirect
- The redirect purpose
+ Redirect to a URL
&reftitle.description;
- public voidYaf_Controller_Abstract::redirect
+ public boolYaf_Controller_Abstract::redirect
stringurl
-
+ redirect to a URL by sending a 302 header
@@ -25,7 +25,7 @@
url
-
+ a location URL
@@ -35,7 +35,7 @@
&reftitle.returnvalues;
-
+ bool