Hello, I managed to add custom requirements to Login form, but how can i add them to password recovery form?
Object::useCustomClass('MemberLoginForm', 'CustomLoginForm');
class CustomLoginForm extends MemberLoginForm {
function custom_requirements() {
Requirements::combine_files("comb_member_login.css",array(
'themes/'.SSViewer::current_theme().'/css/member_login.css',
'mysite/javascript/niceforms/niceforms.css'
));
Requirements::combine_files('comb_forms.js',array('mysite/javascript/niceforms/niceforms.js'));
}
function __construct($controller, $name, $fields = null, $actions = null,
$checkCurrentUser = true) {
self::custom_requirements();
parent::__construct($controller, $name, $fields = null, $actions = null,$checkCurrentUser = true);
}
}