Hello,
I have this "admin.php" which is mainly the home page of an admin. It is located in protected/admin/views.
Now my real problem is this:
// validate user input and redirect to the previous page if valid
if($model->validate() && $model->login())
$this->render('admin.php'); //I've already customized this, but still it has an error.
I would like to redirect it to protected/admin/views/admin.php. How do I do this?
Chabx,
Page 1 of 1
Admin Redirect
#3
Posted 06 August 2012 - 10:12 PM
Hi,
You can also use Yii::app()->user->returnUrl to redirect to the previous url visited by user
as finded in documentation
or in controller
More on http://www.yiiframew...rization-result
and http://www.yiiframew...bUser#returnUrl
You can also use Yii::app()->user->returnUrl to redirect to the previous url visited by user
as finded in documentation
Yii::app()->request->redirect(Yii::app()->user->returnUrl);
or in controller
$this->redirect(Yii::app()->user->returnUrl);
More on http://www.yiiframew...rization-result
and http://www.yiiframew...bUser#returnUrl
Share this topic:
Page 1 of 1

Help












