开发者

Is there any default css file for zend framework?

I tried to find the default css file for zend framework project开发者_运维知识库 .

Is there any default css file for zend framework actually?

How can i change the css style of a form text input textarea


No, there is no default css. Zend Framework is more on the library side than your Cake so you cannot expect it to deliver half an application for you. But what you can expect is rock solid, highly secure and very flexible components!


There is no default css file for ZF as much as i know.You could insert css files easily in your view`s index.phtml or layout file using this command:

 $this->headLink()->appendStylesheet('./css/mycustomcss.css');

and when you appended and or prepended all your css files,you may write following code to actually display it:

 echo $this->headLink();

For styling Zend forms check this useful blog post and zend framework documentation regarding decorators.

You can also set additional HTML attributes for the tag by using the setAttrib() or setAttribs() methods. For instance, if you wish to set the id, set the "id" attribute: $form->setAttrib('id', 'login'); or

$form->setAttrib('class', 'zend-form')
->addAttribs(array(
     'id'       => 'registration',
     'onSubmit' => 'validate(this)',
));

another example which is for Zend_Form_Element_Text:

$primaryEmail = new Zend_Form_Element_Text('primaryemail');
$primaryEmail->setAttrib('size', 35)->setAttrib('class', 'another_row');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜