PHP Error

Declaration of UserSchoolsModel::model() should be compatible with CActiveRecord::model($className = 'CActiveRec...')

/home/sensel5/public_html/minddev/mindtest/protected/models/UserSchoolsModel.php(0)

Stack Trace

#2
+
 /home/sensel5/public_html/minddev/mindtest/protected/modules/english/controllers/SchoolController.php(631): spl_autoload_call("UserSchoolsModel")
626      */
627     public function signup($signupType) {
628         
629         $accountSignUpForm = new AccountSignUpForm;
630         $user = new Users;
631         $school = new UserSchoolsModel;
632 
633         // Did we submit the form?
634         if(isset($_POST['AccountSignUpForm'])) {
635 
636             // collects user input data
#3
+
 /home/sensel5/public_html/minddev/mindtest/protected/modules/english/controllers/SchoolController.php(614): SchoolController->signup("student")
609         // Anything except 'teacher' is regarded as student
610         if($userType != 'teacher') {
611             $userType = 'student';
612         }
613 
614         $this->signup($userType);
615 
616     }
617 
618     /**
619      * Process a signup request for a teacer or a student
#16
+
 /home/sensel5/public_html/minddev/mindtest/index.php(34): CApplication->run()
29     ini_set('display_errors', false);
30     error_reporting(0);
31 }
32 $configFile = (YII_DEBUG === true) ? 'dev.php' : 'production.php';
33 require_once($yii);
34 Yii::createWebApplication($config . $configFile)->run();
2024-03-29 07:53:37 Apache Yii Framework/1.1.6