Форма app frontend lib form RegisterForm class php class sfRegisterFor

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
// Форма /app/frontend/lib/form/RegisterForm.class.php
class sfRegisterForm extends sfForm {
public function configure() {
$this->setWidgets(
'email' => new sfWidgetFormInput(array('label'=>'Имя пользователя')),
'password' => new sfWidgetFormInputPassword(array('label'=>'Пароль'));
);
}
}
// Контроллер
class sfApplyActions extends BasesfApplyActions {
public function executeApply(sfRequest $request) {
$this->form = new RegisterForm();
}
}
// Результат:
Fatal error: Class 'RegisterForm' not found in /var/www/mh/apps/frontend/modules/sfApply/actions/actions.class.php on line 18