diff options
author | emkael <emkael@tlen.pl> | 2016-04-19 13:33:29 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-04-19 13:33:29 +0200 |
commit | d0acd8681d97c863b9b6fec9d286a0aa19abf61e (patch) | |
tree | 65b645f7f74e1bbf2fa4c1bb9c77ff4f0a8699ab /app/php/controls/RegistrationForm.php | |
parent | 60841b3c92dc630d5d6dd03aadac27705bacdc62 (diff) |
* base class for controls, auto-registering JS scripts
Diffstat (limited to 'app/php/controls/RegistrationForm.php')
-rw-r--r-- | app/php/controls/RegistrationForm.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/php/controls/RegistrationForm.php b/app/php/controls/RegistrationForm.php index 71d4df1..2ffe507 100644 --- a/app/php/controls/RegistrationForm.php +++ b/app/php/controls/RegistrationForm.php @@ -1,8 +1,10 @@ <?php +Prado::using('Application.components.TemplateControl'); + Prado::using('Application.model.User'); -class RegistrationForm extends TTemplateControl { +class RegistrationForm extends TemplateControl { public function checkUsername($sender, $param) { $param->IsValid = !User::finder()->countByLogin($this->Login->SafeText); |