1. Christian Salazar
  2. EYuiDemo

Commits

Christian Salazar  committed 78fe3ed

actionOk for sample pruposes

  • Participants
  • Parent commits 639248a
  • Branches master

Comments (0)

Files changed (1)

File protected/controllers/ExampleController.php

View file
  • Ignore whitespace
 			$model->attributes=$_POST['Example']; 
 			if($model->validate()) 
 			{ 
-				// form inputs are valid, do something here 
+				$this->redirect(array('ok'));
 				return; 
 			} 
 		} 
 		$this->render('create',array('model'=>$model)); 
 	}
 
+	public function actionOk(){
+		$this->renderText("Ok example finished. <a href='index.php?r=example/create'>Start Again</a>");
+	}
 
 }