Created
September 7, 2015 14:39
-
-
Save ninjacn/a0e47f2bd767a988b861 to your computer and use it in GitHub Desktop.
Revisions
-
ninjacn created this gist
Sep 7, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ class LoginForm extends CFormModel { public $username; public $password; } $form = new LoginForm(); $form->validatorList->add( CValidator::createValidator('required', $form, 'username, password') );