codeigniter avoiding html div's

Posted by rabidmachine9 on Stack Overflow See other posts from Stack Overflow or by rabidmachine9
Published on 2010-12-21T22:15:17Z Indexed on 2010/12/22 0:54 UTC
Read the original article Hit count: 153

Filed under:
|
|
|

Hello there!Is there a proper syntax to avoid div's in codeigniter? I don't really like opening and closing tags all the time...

<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>

© Stack Overflow or respective owner

Related posts about php

Related posts about codeigniter