Welcome Guest, Not a member yet? Register   Sign In
Clean up my view
#1

[eluser]johnwbaxter[/eluser]
I would really like to get this sort of stuff out of my view

Code:
<?php foreach($con_options->result() as $item):?>
    <?$checkbox_value = $item->contact;?>
    &lt;?=form_checkbox('parent_contact[]', $checkbox_value, FALSE)?&gt;<label for ='&lt;?=$item->contact;?&gt;'>&lt;?=$item->contact;?&gt;</label><br />
    &lt;?php endforeach;?&gt;

and into a controller. I'm not averse to using the CI template syntax but i really cant figure out how to do it.

Any ideas?


Messages In This Thread
Clean up my view - by El Forum - 08-21-2007, 04:57 AM
Clean up my view - by El Forum - 08-21-2007, 06:40 AM
Clean up my view - by El Forum - 08-21-2007, 06:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB