0
有没有适当的语法来避免在codeigniter的div? 我真的不喜欢开始和结束标记所有的时间...codeigniter避免html div的
<div class="theForm">
<?php
echo form_open('edit/links');//this form uploads
echo "Enter the Name: ". form_input('name','name');
echo "Enter the Link: ". form_input('url','url');
echo " ".form_submit('submit', 'Submit');
echo form_close();
if (isset($linksQuery) && count($linksQuery)){
foreach($linksQuery as $link){
echo anchor($link['link'], $link['name'].".", array("class" => "links"));
echo form_open('edit/links',array('class' => 'deleteForm'));
echo form_hidden('name',$link['name']);
echo " ".form_submit('delete','Delete');
echo form_close();
echo br(2);
}
}
?>
</div>
什么你的意思是避免使用div吗?无论使用纯HTML还是PHP函数,它们都必须以任何方式打开和关闭。除非有其他必要,否则我坚持使用纯HTML。 – simshaun 2010-12-21 22:18:36
我的意思是使用一个PHP的替代品的div和特别是像我所谓的“theForm” – rabidmachine9 2010-12-21 22:28:57