codeigniter html输出(在这种情况下为表单)

I was wondering, is there any easy way to have the html generated by codeigniter be more structured and more readable? For example, if I do this:

 echo form_open('do/send',array("id" => "contact_form"));

 echo form_label("Name:", "name");
 echo form_input(array("name" => "name"));
 echo form_submit("submit", "Submit");
 echo form_close();

The html generated will be in one single line and no structure. I could do something like this:

echo form_submit("submit", "Submit")." ";

But that's not really practical.

Any ideas?

Reading through CodeIgniter Form Creating Library it seems that your options are either manually putting in the , like you suggested or put it in the html mockup and space it out that way (for this see the referenced page under: Open "books_input.php" within CodeIgniter\system\application\views. Update like following code:)

You should try Dan Horrigan's Formation library. It's much nicer than CodeIgniter's helper output, and easier to use, also.