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:
Sam Minnee 2007-08-16 06:27:55 +00:00
parent f97fc4ad65
commit c3f124dd95
1 changed files with 1 additions and 1 deletions

View File

@ -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)");