control/RequestHandler.php 1 location
|
@@ 249-251 (lines=3) @@
|
| 246 |
|
$urlHandlers = Config::inst()->get($handlerClass, 'url_handlers', Config::UNINHERITED); |
| 247 |
|
|
| 248 |
|
if($urlHandlers) foreach($urlHandlers as $rule => $action) { |
| 249 |
|
if(isset($_REQUEST['debug_request'])) { |
| 250 |
|
Debug::message("Testing '$rule' with '" . $request->remaining() . "' on $this->class"); |
| 251 |
|
} |
| 252 |
|
|
| 253 |
|
if($request->match($rule, true)) { |
| 254 |
|
if(isset($_REQUEST['debug_request'])) { |
control/Controller.php 1 location
|
@@ 169-172 (lines=4) @@
|
| 166 |
|
|
| 167 |
|
} else { |
| 168 |
|
if($body instanceof Object && $body->hasMethod('getViewer')) { |
| 169 |
|
if(isset($_REQUEST['debug_request'])) { |
| 170 |
|
Debug::message("Request handler $body->class object to $this->class controller;" |
| 171 |
|
. "rendering with template returned by $body->class::getViewer()"); |
| 172 |
|
} |
| 173 |
|
$body = $body->getViewer($this->getAction())->process($body); |
| 174 |
|
} |
| 175 |
|
|