Advertisement
Guest User

Untitled

a guest
Feb 15th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <?php
  2.  
  3. class WalidacjaFormularz extends CActiveRecord
  4. {
  5. public $id;
  6. public $imie;
  7. public $nazwisko;
  8.  
  9. public static function model($className=__CLASS__)
  10. {
  11. return parent::model($className);
  12. }
  13.  
  14.  
  15. public function tableName()
  16. {
  17. return 'osoby';
  18. }
  19.  
  20. public function attributeLabels()
  21. {
  22. return array(
  23. 'id' => 'ID',
  24. 'imie' => 'ImiÄ™',
  25. 'nazwisko' => 'Nazwisko',
  26. );
  27. }
  28.  
  29. public function rules()
  30. {
  31. return array(
  32. array('imie', 'required'),
  33. }
  34.  
  35. }
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement