0
데이터를 저장 한 후에 다른 페이지로 리디렉션해야합니다. 그렇게하려면 create.php 및 _from.php (create_1.php 및 _from_1.php)를 복제하십시오. 내가 리디렉션 때YII 내 페이지를 리디렉션하는 방법은 무엇입니까?
array('allow', // allow all users to perform 'index' and 'view' actions
'actions'=>array('index','view','Create_1'),
'users'=>array('*'),
),
array('allow', // allow authenticated user to perform 'create' and 'update' actions
'actions'=>array('create','update','Create_1'),
'users'=>array($user->isTeacher())
),
array('allow', // allow admin user to perform 'admin' and 'delete' actions
'actions'=>array('admin','delete','create','Create_1'),
'users'=>array($user->isAdmin())
),
어느 한 방법이 문제를 해결하기 위해 말해 줄 수() 함수 accessRules에 오류 404
//AssimentController.php
if($this->saveed($data1,$studentid,$modelcrite,$model))
{
Yii::app()->session['model']=$model;
$this->actionCreate_1();
}
public function actionCreate_1()
{
$model=new Assiment;
$modelcrite=new AssimentMarks;
$this->redirect(array('create_1'),
array('model'=>$model,'modelcrite'=>$modelcrite,));
}
//을 제공 YII?
을 읽어야 나는이 같은 error.do 문제를 해결할 방법을 알고 변화? – nu123
고맙습니다. – nu123