diff --git a/reference/yaf/yaf-bootstrap-abstract.xml b/reference/yaf/yaf-bootstrap-abstract.xml
index b8d6ec03e3..a742ca0777 100644
--- a/reference/yaf/yaf-bootstrap-abstract.xml
+++ b/reference/yaf/yaf-bootstrap-abstract.xml
@@ -12,7 +12,17 @@
&reftitle.intro;
-
+ Bootstrap is a mechanism used to do some intial config before a
+ Application run.
+
+
+ User may define their own Bootstrap class by inheriting
+ Yaf_Bootstrap_Abstract
+
+
+ Any method declared in Bootstrap class with leading "_init", will be
+ called by Yaf_Application::bootstrap one by one
+ according to their defined order.
diff --git a/reference/yaf/yaf-view-simple.xml b/reference/yaf/yaf-view-simple.xml
index 7f7588237f..032493b687 100644
--- a/reference/yaf/yaf-view-simple.xml
+++ b/reference/yaf/yaf-view-simple.xml
@@ -12,7 +12,9 @@
&reftitle.intro;
-
+ Yaf_View_Simple is the built-in template engine in
+ Yaf, it is a simple but fast template engine, and only support PHP script
+ template.
diff --git a/reference/yaf/yaf_application/bootstrap.xml b/reference/yaf/yaf_application/bootstrap.xml
index 11e485416a..45b0bba322 100644
--- a/reference/yaf/yaf_application/bootstrap.xml
+++ b/reference/yaf/yaf_application/bootstrap.xml
@@ -15,7 +15,7 @@
Run a Bootstrap, all the methods defined in the Bootstrap and named with
- prefix "_init" will be called in the declaration order, if the parameter bootstrap is not supplied, Yaf will look
+ prefix "_init" will be called according to their declaration order, if the parameter bootstrap is not supplied, Yaf will look
for a Bootstrap under application.directory.
&warn.undocumented.func;
diff --git a/reference/yaf/yaf_view_simple/assign.xml b/reference/yaf/yaf_view_simple/assign.xml
index beec1ddeab..490c77abf1 100644
--- a/reference/yaf/yaf_view_simple/assign.xml
+++ b/reference/yaf/yaf_view_simple/assign.xml
@@ -4,15 +4,15 @@
Yaf_View_Simple::assign
- The assign purpose
+ Assign values
&reftitle.description;
- public voidYaf_View_Simple::assign
+ public boolYaf_View_Simple::assign
stringname
- stringvalue
+ mixedvalue
@@ -29,7 +29,10 @@
name
-
+ A string or an array.
+
+
+ if is string, then the next argument $value is required.
@@ -37,7 +40,7 @@
value
-
+ mixed value
@@ -51,6 +54,51 @@
+
+ &reftitle.examples;
+
+ Yaf_View_Simple::assignexample
+
+getView()->assign("foo", "bar");
+ $this->_view->assign( array( "key" => "value", "name" => "value"));
+ }
+?>
+]]>
+
+
+
+ templateexample
+
+
+
+
+
+
+ _tpl_vars as $name => value) {
+ echo $$name; // or echo $this->_tpl_vars[$name];
+ }
+ ?>
+
+