reference/yaf/yaf_router/getcurrentroute.xml
73fae4ee51b644b72028e610abefefced57c18ad
...
...
@@ -76,6 +76,7 @@ class Bootstrap extends Yaf_Bootstrap_Abstract{
76
76
public function __initPlugins(Yaf_Dispatcher $dispatcher) {
77
77
$dispatcher->registerPlugin(new DummyPlugin());
78
78
}
79
+
}
79
80
?>
80
81
]]>
81
82
</programlisting>
...
...
@@ -87,11 +88,10 @@ class Bootstrap extends Yaf_Bootstrap_Abstract{
87
88
<![CDATA[
88
89
<?php
89
90
class DummyPlugin extends Yaf_Plugin_Abstract {
90
-

91
91
public function routerShutdown(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {
92
92
var_dump(Yaf_Dispatcher::getInstance()->getRouter()->getCurrentRoute());
93
93
}
94
-
?>
94
+
}
95
95
?>
96
96
]]>
97
97
</programlisting>
98
98