Lithium 表单助手 HTML 模板
Lithium form helper HTML template
我想生成 a) 编写 b) 我相信使用表单助手/模板是可能的。
一)
<div class="SomeClass">
<span>
<i class="some OtherClass "></i>
</span>
<input type="text" ... >
</div>
<h4 class="error">Validation Message Goes Here</h4>
b)
<?= $this->form->field('name',array('label'=>false, 'placeholder'=>'someHolder')); ? >
锂电形态class好评如潮
你应该尝试这样的事情:
<?php
echo $this->form->create(null);
echo $this->form->field(
'name',
[
'template' => '<div{:wrap}><span><i class="some OtherClass"></i></span>{:input}</div>',
'wrap' => ['class' => 'SomeClass'],
]
);
echo $this->form->error('name', null, ['template' => '<h4 class="error">{:content}</h4>']);
echo $this->form->end();
?>
我想生成 a) 编写 b) 我相信使用表单助手/模板是可能的。
一)
<div class="SomeClass">
<span>
<i class="some OtherClass "></i>
</span>
<input type="text" ... >
</div>
<h4 class="error">Validation Message Goes Here</h4>
b)
<?= $this->form->field('name',array('label'=>false, 'placeholder'=>'someHolder')); ? >
锂电形态class好评如潮
你应该尝试这样的事情:
<?php
echo $this->form->create(null);
echo $this->form->field(
'name',
[
'template' => '<div{:wrap}><span><i class="some OtherClass"></i></span>{:input}</div>',
'wrap' => ['class' => 'SomeClass'],
]
);
echo $this->form->error('name', null, ['template' => '<h4 class="error">{:content}</h4>']);
echo $this->form->end();
?>