abstract class Common_controller extends MY_Controller {
public function __construct()
{
parent::__construct();
}
abstract public function index();
abstract public function search();
abstract public function add();
abstract public function edit();
abstract public function do_add();
abstract public function do_edit();
abstract public function do_delete();
abstract public function do_forbid();
abstract public function do_resume();
abstract public function do_rec();
abstract public function do_cancel_rec();
}
class User extends Common_controller{
public function index(){
}
//.....重载其他方法
}