12 $this->render(
'view', array(
28 if (isset($_POST[
'AccountUsers'])) {
29 $model->attributes = $_POST[
'AccountUsers'];
31 $this->redirect(array(
'view',
'id' => $model->UserId));
35 $this->render(
'create', array(
53 if (isset($_POST[
'AccountUsers'])) {
54 $model->attributes = $_POST[
'AccountUsers'];
56 $this->redirect(array(
'view',
'id' => $model->UserId));
60 $this->render(
'update', array(
76 if (!isset($_GET[
'ajax'])) {
77 $this->redirect(isset($_POST[
'returnUrl']) ? $_POST[
'returnUrl'] : array(
'admin'));
86 $dataProvider =
new CActiveDataProvider(
'AccountUsers');
87 $this->render(
'index', array(
88 'dataProvider' => $dataProvider,
98 $model->unsetAttributes();
99 if (isset($_GET[
'AccountUsers'])) {
100 $model->attributes = $_GET[
'AccountUsers'];
103 $this->render(
'admin', array(
121 if ($model === null) {
122 throw new CHttpException(404,
'The requested page does not exist.');
135 if (isset($_POST[
'ajax']) && $_POST[
'ajax'] ===
'account-users-form') {
136 echo CActiveForm::validate($model);