<?php class BaseController{ public function __call($Action, array $Data){ if (method_exists($this, $Action . "Action")) { } elseif (method_exists($this, "DefaultAction") and $this->DefaultAction($Action, $Data)) { exit; } } } class TestPage extends BaseController{ protected function DefaultAction($Action, array $Data) { return false; } } $testpage = new TestPage(); $testpage->Show();
You have javascript disabled. You will not be able to edit any code.