Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class WalidacjaController extends CController
- {
- public function actionIndex()
- {
- $ModelWalidacja = new WalidacjaFormularz;
- if(isset($_POST['WalidacjaFormularz']))
- {
- if($ModelWalidacja->validate())
- {
- $ModelWalidacja->save();
- $Zapisano = true;
- }
- }
- $this->render('walidacja1',
- array(
- 'model' => $ModelWalidacja,
- 'Zapisano' => $Zapisano,
- )
- );
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement