svn: /pear/peardoc/trunk/en/package/networking/net-url-mapper/ example.xml

[email protected] (Till Klampaeckel)
Newsgroups php.pear.doc
Message-ID <[email protected]>
till                                     Sun, 04 Oct 2009 15:13:56 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=289188

Log:
added comments

Changed paths:
    U   pear/peardoc/trunk/en/package/networking/net-url-mapper/example.xml

Modified: pear/peardoc/trunk/en/package/networking/net-url-mapper/example.xml
===================================================================
--- pear/peardoc/trunk/en/package/networking/net-url-mapper/example.xml	2009-10-04 15:11:44 UTC (rev 289187)
+++ pear/peardoc/trunk/en/package/networking/net-url-mapper/example.xml	2009-10-04 15:13:56 UTC (rev 289188)
@@ -99,9 +99,13 @@

 $route = $m->match($_SERVER['REQUEST_URI']);

+// Fix the controller's name to adhere to ZF's standard, FooController
 $controllerClass  = ucfirst(strtolower($route['controller'])) . 'Controller';
+
+// Fix the action's name to adhere to ZF's standard, barAction()
 $controllerAction = strtolower($route['action']) . 'Action';

+// load the controller class
 require 'app/modules/' . $route['module'] . '/' . $class . '.php';

 $controllerObj = new $class;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.