function run() { if (method_exists($this, 'init')) { $this->init(); } $C = !isset($_GET['a']) ? 'index' : strtolower($_GET['a']); if (method_exists($this, $C)) { $this->{$C}(); } else { Debug::addmsg('<font color="red">控制器' . ucfirst(strtolower($_GET['m'])) . 'Action中没有' . $C . '这个方法</font>'); } parent::__construct(); }
public function __construct() { parent::__construct(); }