Maybe its obvious problem but could you please tell me how can I add custom css styles to forms created by standard view helpers in zend framework 2?
Im trying to attach some styles to forms created by ZfcUser
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assign the class-attribute 🙂
Since you want to extend an existing form, you could either grab the Form and then
$form->get('elementname')->setAttribute('class','blubb');or you overwrite the Service-Form from ZfCUser with your custom form that has all styles attached, given above example.