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

From: Date: Sun, 04 Oct 2009 15:13:56 +0000
Subject: svn: /pear/peardoc/trunk/en/package/networking/net-url-mapper/ example.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-11819@lists.php.net to get a copy of this message
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;

« previous php.pear.doc (#11819) next »