diff --git a/reference/yaf/appconfig.xml b/reference/yaf/appconfig.xml
index 5b057fa7f52d..f5ce001e6077 100644
--- a/reference/yaf/appconfig.xml
+++ b/reference/yaf/appconfig.xml
@@ -18,18 +18,21 @@
array(
- "directory" => dirname(__FILE__),
- "dispatcher" => array(
- "catchException" => 0,
- ),
- "view" => array(
- "ext" => "phtml",
- ),
- ),
- );
- $app = new Yaf_Application($configs);
+
+$configs = array(
+ "application" => array(
+ "directory" => dirname(__FILE__),
+ "dispatcher" => array(
+ "catchException" => 0,
+ ),
+ "view" => array(
+ "ext" => "phtml",
+ ),
+ ),
+);
+
+$app = new Yaf_Application($configs);
+
?>
]]>
@@ -39,7 +42,7 @@