Php 在zend中自定义文本框
但我得到的输出是 我正在使用zend框架。 我的表格是Php 在zend中自定义文本框,php,html,css,zend-framework,Php,Html,Css,Zend Framework,但我得到的输出是 我正在使用zend框架。 我的表格是 My expected output is this 我的视图代码是 $this->setMethod('post'); $username = $this->createElement('text','username'); $username->setLabel('Username') ; $username->setAttrib("class
My expected output is this
我的视图代码是
$this->setMethod('post');
$username = $this->createElement('text','username');
$username->setLabel('Username')
;
$username->setAttrib("class"," member_login");
$password = $this->createElement('password','password');
$password->setLabel('password:')
$password->setAttrib("class","member_login");
是否检查生成的HTML输出?是否检查生成的HTML输出?
<?php echo $this->form; ?>
.member_login{
width: 635px;
float:left;
padding-left:30px;
}
.member_login input{
border: 1px solid #ccc;
color: #999;
height: 30px;
margin: 5px 10px;
padding: 0 5px;
width: 200px;
}