mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Let controller extensions define new action MEthods
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40225 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f97fc4ad65
commit
c3f124dd95
@ -139,7 +139,7 @@ class Controller extends ViewableData {
|
||||
} else {
|
||||
if(!isset($funcName)) $funcName = $this->action;
|
||||
|
||||
if(method_exists($this, $funcName)) {
|
||||
if($this->hasMethod($funcName)) {
|
||||
if(isset($_GET['debug_controller'])) Debug::show("Found function $funcName on the $this->class controller");
|
||||
|
||||
if(isset($_GET['debug_profile'])) Profiler::mark("$this->class::$funcName (controller action)");
|
||||
|
Loading…
Reference in New Issue
Block a user