/**
  * Creates a new model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  */
 public function actionCreate()
 {
     $model = new AclTipoUsuario();
     $oAclRota = new AclRota();
     if (isset($_POST['AclTipoUsuario'])) {
         $model->attributes = $_POST['AclTipoUsuario'];
         if ($model->save()) {
             $oAclTipoUsuarioRota = new AclTipoUsuarioRota();
             $oAclTipoUsuarioRota->acl_tipo_usuario_id = $model->id;
             $oAclTipoUsuarioRota->salvarTipoUsuarioRotas($_POST);
         }
         $this->redirect(array('view', 'id' => $model->id));
     }
     $this->render('create', array('model' => $model, 'aAclRotas' => $oAclRota->getAclRotasArray()));
 }