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