我有這樣的代碼`我怎麼能寫HTML代碼的Zend框架
的 <div class="input-prepend">
<span class="add-on"><i class="icon-user"></i></span>
<input type="text" placeholder="Username">
</div>
<div class="input-prepend">
<span class="add-on"><i class="icon-lock"></i></span>
<input type="password" placeholder="Password">
<a href="index.html"><span class="add-on" id="login"><i class="icon-arrow-right"></i></span></a>
</div>
,我想對Zend框架文件的一個.phtml我與MVC 工作,可你寫的請幫我我怎麼可以寫在文件.phtml在zend框架 所以我用這個<?php echo $this->element->loginAd->renderViewHelper(); ?>
,我不知道我怎麼做<span class="add-on"> <i class="icon-user"></i> </span>
Syntaxe相同的zend視圖 我想做的主題相同的HTML/CSS 當我寫這個代碼
`<form class="form-signin" name="login-form" id="login-form" method="<?php echo $this->escape($this->element->getMethod()); ?>" action="<?php echo $this->escape($this->element->getAction()); ?>">
<h2 class="form-signin-headin
g"><strong>Administration</strong></h2>
<div class="input-prepend">
<span class="add-on">
<i class="icon-user"></i>
</span>
<?php echo $this->element->loginAd->renderViewHelper(); ?>
</div>
<div class="input-prepend">
<span class="add-on"><i class="icon-lock"></i></span>
<?php echo $this->element->password->renderViewHelper(); ?>
<a href="index.html"><span class="add-on" id="login"><i class="icon-arrow-right"></i></span></a>
</div>
<?php echo $this->element->submit->renderViewHelper(); ?>
<p class="input-height">
<input type="checkbox" name="keep-logged" id="keep-logged" value="1" class="mini-switch" checked="checked">
<label for="keep-logged" class="inline"><?=$this->translate('Stay connected');?></label>
</p>
</form>`
感謝您的幫助很大
謝謝你的回答,但我有我想要做的代碼''?php echo $ this-> element-> loginAd-> renderViewHelper(); ?>'我如何編寫'<跨度類= 「附加」> \t \t \t \t \t \t \t \t' – user3791255