control/Controller.php 1 location
|
@@ 190-193 (lines=4) @@
|
| 187 |
|
|
| 188 |
|
} else { |
| 189 |
|
if($body instanceof Object && $body->hasMethod('getViewer')) { |
| 190 |
|
if(isset($_REQUEST['debug_request'])) { |
| 191 |
|
Debug::message("Request handler $body->class object to $this->class controller;" |
| 192 |
|
. "rendering with template returned by $body->class::getViewer()"); |
| 193 |
|
} |
| 194 |
|
$body = $body->getViewer($this->getAction())->process($body); |
| 195 |
|
} |
| 196 |
|
|
control/RequestHandler.php 1 location
|
@@ 270-272 (lines=3) @@
|
| 267 |
|
$urlHandlers = Config::inst()->get($handlerClass, 'url_handlers', Config::UNINHERITED); |
| 268 |
|
|
| 269 |
|
if($urlHandlers) foreach($urlHandlers as $rule => $action) { |
| 270 |
|
if(isset($_REQUEST['debug_request'])) { |
| 271 |
|
Debug::message("Testing '$rule' with '" . $request->remaining() . "' on $this->class"); |
| 272 |
|
} |
| 273 |
|
|
| 274 |
|
if($request->match($rule, true)) { |
| 275 |
|
if(isset($_REQUEST['debug_request'])) { |