File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ public function createFromRouter(WebRouter $router)
5757 $ result = $ router ->parse ($ _SERVER ['REQUEST_URI ' ]);
5858
5959 // Get parameters and check them
60- $ this ->controllerName = isset ($ result ["controller " ]) ? Secure::controlVar ($ result ["controller " ]) : 'DefaultController ' ;
61- $ this ->actionName = isset ($ result ["action " ]) ? Secure::controlVar ($ result ["action " ]) : 'display ' ;
62- $ this ->params = isset ($ result ["params " ]) ? Secure::controlVar ($ result ["params " ]) : ['NULL ' ];
60+ $ this ->controllerName = isset ($ result ["controller " ]) ? ucfirst ( strtolower ( Secure::controlVar ($ result ["controller " ])) ) : 'DefaultController ' ;
61+ $ this ->actionName = isset ($ result ["action " ]) ? ucfirst ( strtolower ( Secure::controlVar ($ result ["action " ])) ) : 'display ' ;
62+ $ this ->params = isset ($ result ["params " ]) ? ucfirst ( strtolower ( Secure::controlVar ($ result ["params " ])) ) : ['NULL ' ];
6363
6464 // Check whether the class file exists
6565 if (file_exists ($ file = CR_DIR . "/ {$ this ->controllerName }.php " )) {
You can’t perform that action at this time.
0 commit comments