Welcome Guest, Not a member yet? Register   Sign In
set_error_delimiters for group of errors
#1

[eluser]deadfrog[/eluser]
I just discovered CodeIgniter and I absolutely love it so far, hoping the community is as cool!

Now I searched the forum but can't find an answer to this, but I find that odd as surely I can't be the only one who needs it. I'm probably being a fool so apologies in advance.

If I run this:

Code:
$this->validation->set_error_delimiters('<div class="error">', '</div>');

I get this:

Code:
<div class="error">error 1</div>
<div class="error">error 2</div>

And so on. What I want to achieve is:

Code:
<div id="error">
<ul>
<li>error 1</li>
<li>error 2</li>
</ul>
</div>

But I don't want the page to render any of the code unless errors exist.

Hope someone can assist, and hope I didn't miss a previous post.

Cheers chaps,
Andy.


Messages In This Thread
set_error_delimiters for group of errors - by El Forum - 01-10-2008, 04:54 PM
set_error_delimiters for group of errors - by El Forum - 01-10-2008, 05:22 PM
set_error_delimiters for group of errors - by El Forum - 01-10-2008, 05:35 PM
set_error_delimiters for group of errors - by El Forum - 01-10-2008, 05:41 PM
set_error_delimiters for group of errors - by El Forum - 01-10-2008, 06:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB