getUser(); $this->id = $user["email"]; $this->name = $user["name"]; $this->setState("info", $user); $this->saveToCookie($duration); } protected function loadIdentityStates($states) { parent::loadIdentityStates($states); $this->loadVariables(); } public function loadVariables() { $info = $this->getState("info"); if ($info === null) { $this->userid = null; $this->lastname = null; $this->email = null; $this->phone = null; } $this->userid = $info["id"]; $this->name = $info["name"]; $this->lastname = $info["lastname"]; $this->email = $info["email"]; $this->phone = $info["phone"]; } public function get() { $this->loadVariables(); return $this; } public static function getCurrentUser() { return Yii::app()->user->get(); } public function getIsGuest() { if ($this->getState('info')===null) { return true; } /* $info = $this->getState("info"); if (!is_array($info) || !isset($info["id"]) || !isset($info["id"]) || !isset($info["name"]) || !isset($info["lastname"]) || !isset($info["email"]) || !isset($info["phone"])) { return true; } */ return false; } public function getOriginalDuration() { $request=Yii::app()->getRequest(); $cookies=$request->getCookies(); $cookie=$cookies->itemAt($this->getStateKeyPrefix()); if($cookie && !empty($cookie->value) && ($data=Yii::app()->getSecurityManager()->validateData($cookie->value))!==false) { $data=@unserialize($data); if(is_array($data) && isset($data[0],$data[1],$data[2],$data[3])) { // data is an array containing id, name, duration, states // so second index is the duration return $data[2]; } } return 0; } public function updateField($field, $value) { $info = $this->getState("info"); if (!isset($info[$field])) { return; } $info[$field] = $value; $this->setState("info", $info); $info = $this->getState("info", $info); if ($info[$field] !== $value) { throw new CException("not saved0"); } $this->loadVariables(); $duration = $this->getOriginalDuration(); $this->saveToCookie($duration); $this->renewCookie(); } } ?> getUser(); $this->id = $user["email"]; $this->name = $user["name"]; $this->setState("info", $user); $this->saveToCookie($duration); } protected function loadIdentityStates($states) { parent::loadIdentityStates($states); $this->loadVariables(); } public function loadVariables() { $info = $this->getState("info"); if ($info === null) { $this->userid = null; $this->lastname = null; $this->email = null; $this->phone = null; } $this->userid = $info["id"]; $this->name = $info["name"]; $this->lastname = $info["lastname"]; $this->email = $info["email"]; $this->phone = $info["phone"]; } public function get() { $this->loadVariables(); return $this; } public static function getCurrentUser() { return Yii::app()->user->get(); } public function getIsGuest() { if ($this->getState('info')===null) { return true; } /* $info = $this->getState("info"); if (!is_array($info) || !isset($info["id"]) || !isset($info["id"]) || !isset($info["name"]) || !isset($info["lastname"]) || !isset($info["email"]) || !isset($info["phone"])) { return true; } */ return false; } public function getOriginalDuration() { $request=Yii::app()->getRequest(); $cookies=$request->getCookies(); $cookie=$cookies->itemAt($this->getStateKeyPrefix()); if($cookie && !empty($cookie->value) && ($data=Yii::app()->getSecurityManager()->validateData($cookie->value))!==false) { $data=@unserialize($data); if(is_array($data) && isset($data[0],$data[1],$data[2],$data[3])) { // data is an array containing id, name, duration, states // so second index is the duration return $data[2]; } } return 0; } public function updateField($field, $value) { $info = $this->getState("info"); if (!isset($info[$field])) { return; } $info[$field] = $value; $this->setState("info", $info); $info = $this->getState("info", $info); if ($info[$field] !== $value) { throw new CException("not saved0"); } $this->loadVariables(); $duration = $this->getOriginalDuration(); $this->saveToCookie($duration); $this->renewCookie(); } } ?> Error

Error

Class "WebUser" not found

/home/xgmexgme/public_html/basitpazar/protected/controllers/SiteController.php(40)

28     public function actionIndex()
29     {
30         // renders the view file 'protected/views/site/index.php'
31         // using the default layout 'protected/views/layouts/main.php'
32         $this->render('index');
33     }
34 
35     /**
36      * Displays the login page
37      */
38     public function actionGiris() {
39         // if there was another user logged in, let's log that user out first
40         Yii::app()->user->logout();
41         $this->jsFiles[] = 'site/login.js';
42         $this->render('giris');
43     }
44     public function actionKayit() {
45         // if there was another user logged in, let's log that user out first
46         Yii::app()->user->logout();
47         $this->jsFiles[] = 'site/login.js';
48         $this->render('kayit');
49     }
50 
51     /**
52      * Logs out the current user and redirect to homepage.

Stack Trace

#2
+
–
 /home/xgmexgme/public_html/basitpazar/protected/controllers/SiteController.php(40): CModule->__get()
35     /**
36      * Displays the login page
37      */
38     public function actionGiris() {
39         // if there was another user logged in, let's log that user out first
40         Yii::app()->user->logout();
41         $this->jsFiles[] = 'site/login.js';
42         $this->render('giris');
43     }
44     public function actionKayit() {
45         // if there was another user logged in, let's log that user out first
#10
+
–
 /home/xgmexgme/public_html/basitpazar/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2026-10-29 05:00:37 Apache Yii Framework/1.1.15