اینجورش کردم درست شد شکر خدا
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | public function actionCreate() { $model = new Users; if (isset( $_POST [ 'Users' ])){ $model ->attributes = $_POST [ 'Users' ]; $model ->validate(); $model ->ts = time(); $model ->flag = '1' ; if ( $model ->save()){ $this ->redirect( array ( 'index' , 'id' => $model ->id, 'pas' => $model ->password)); } else { Tools::debug( $model ); } } $this ->render( 'create' , compact( 'model' )); } |