function ListController() {
        parent::MVC_Controller();
        $this->model = new ListModel();
        $this->view->setTemplateDir('list');

        $this->doAction();
    }
Example #2
0
 function LoginController($c)
 {
     parent::MVC_Controller($c);
     $this->model = new LoginModel($this->c);
     $this->view->setTemplateDir('login');
     // FIXME: this needs automating
     log_err(__FILE__, __LINE__, "Info: About to do action: {$action}");
     $this->doAction();
 }
Example #3
0
 function UsersController($c)
 {
     parent::MVC_Controller($c);
     $this->model = new UsersModel($this->c);
     $this->view->setTemplateDir('users');
     // FIXME: this needs automating
     // this should go into debug log, not event log
     //log_err( __FILE__, __LINE__, "Info: About to do action: $action" );
     $this->doAction();
 }