Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class WalidacjaFormularz extends CActiveRecord
- {
- public $id;
- public $imie;
- public $nazwisko;
- public static function model($className=__CLASS__)
- {
- return parent::model($className);
- }
- public function tableName()
- {
- return 'osoby';
- }
- public function attributeLabels()
- {
- return array(
- 'id' => 'ID',
- 'imie' => 'ImiÄ™',
- 'nazwisko' => 'Nazwisko',
- );
- }
- public function rules()
- {
- return array(
- array('imie', 'required'),
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement