[eluser]Michael Wales[/eluser]
You kind of want that sort of stuff in your view.
I mean, you could add this into your controller, but it's going to suck trying to manage:
Code:
<?php foreach ($con_options->result() as $item) {
$data['sucky_large_block_to_echo'] .= '<input type=\"checkbox\" name=\"parent_contact[]\" value=\"" . $item->contact . "\"><label for=\"" . $item->contact . "\">" . $item->contact . "</label><br />";
}
Then in your view:
Code:
<?= $sucky_large_block_to_echo; ?>
That's really abusing the system though and you may as well move to one large file, dropping the MVC framework altogether.