Forgot password

E-mail ID
 
Error

Error

Call to undefined function app()

/home/dlinkmea/public_html/support/protected/controllers/admin/SiteController.php(320)

308           }
309           }else {
310             $flag = '';
311         // return false;
312             $model->addError('email', 'Email does not exist');
313          
314           }
315           }else{
316                    
317           }
318           
319         $this->renderPartial('forgot_password_form', array('model' => $model,'flag'=>$flag));
320         yii:app()->end();
321     }
322     
323   public function actionresetPassword() {
324       //print_r($_POST);die();
325      $this->pageTitle .= " - Reset password";
326      if (!empty($_GET['email'])) {
327             $model = new User;
328             $model = $model->findByAttributes(array('email' => $_GET['email']));
329             //print_r($model);die();
330             if ($model === null) {
331                 //echo "1234";exit;
332                 Yii::app()->user->setFlash('error', "Invalid Email");

Stack Trace

#12
+
 /home/dlinkmea/public_html/support/protected/components/WebApplicationEndBehavior.php(26): CApplication->run()
21             // Attach the changeModulePaths event handler
22             // and raise it.
23             $this->onModuleCreate = array($this, 'changeModulePaths');
24             $this->onModuleCreate(new CEvent($this->owner));
25      
26             $this->owner->run(); // Run application.
27         }
28      
29         // This event should be raised when CWebApplication
30         // or CWebModule instances are being initialized.
31         public function onModuleCreate($event)
#14
+
 /home/dlinkmea/public_html/support/index.php(16): CComponent->__call("runEnd", array("admin"))
11 // specify how many levels of call stack should be shown in each log message
12 //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 
16 Yii::createWebApplication($config)->runEnd('admin');
2024-04-19 23:38:57 Apache Yii Framework/1.1.12