Advertisement
Guest User

Untitled

a guest
Feb 15th, 2015
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2.  
  3. class WalidacjaController extends CController
  4. {
  5.  
  6. public function actionIndex()
  7. {
  8. $ModelWalidacja = new WalidacjaFormularz;
  9.  
  10. if(isset($_POST['WalidacjaFormularz']))
  11. {
  12. if($ModelWalidacja->validate())
  13. {
  14. $ModelWalidacja->save();
  15. $Zapisano = true;
  16. }
  17.  
  18. }
  19.  
  20. $this->render('walidacja1',
  21. array(
  22. 'model' => $ModelWalidacja,
  23. 'Zapisano' => $Zapisano,
  24. )
  25. );
  26. }
  27.  
  28.  
  29. }
  30.  
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement