用YII做的系统 IE内核无法登陆 [ 新手入门 ]
用Yii做了个CMS,后台登陆 火狐和谷歌登陆都没有问题。
IE和360 登陆不了。
跟踪发现, 可以进入跳转。
public function actionIndex()
{
$model=new LoginForm;
// collect user input data
if(isset($_POST['LoginForm']))
{
$model->attributes=$_POST['LoginForm'];
// validate user input and redirect to the previous page if valid
if($model->validate() && $model->login())
{
echo 'go to';
exit;
$this->redirect(array('index/manage'));
//$this->redirect(Yii::app()->user->returnUrl);
}
}
$this->renderPartial('index',array('model'=>$model));
}
去掉上面红色文字后的exit。 西面是manage ,发现没有 输出。怎么回事 ???
/**
* Displays the manage page
*/
public function actionManage()
{
echo 'manage';
exit;
$this->renderPartial('manage');
}
验证规则
/**
* Specifies the access control rules.
* This method is used by the 'accessControl' filter.
* @return array access control rules
*/
public function accessRules()
{
return array(
array('allow', // allow authenticated users to access all actions
'actions'=>array('index','captcha'),
'users'=>array('*'),
),
array('allow',
'actions'=>array('manage','top','left','foot','change','changepwd','logout'),
'users'=> array('@'),
//'roles' => array('Administrator','Authority')
),
array('deny',
'users'=>array('*'),
),
);
}
共 5 条回复
qiaotouhe
注册时间:2012-05-18
最后登录:1970-01-01
在线时长:0小时0分
最后登录:1970-01-01
在线时长:0小时0分
- 粉丝0
- 金钱155
- 威望0
- 积分155