[eluser]The Revel[/eluser]
Ok, I have the following sparks installed:
• template
• ion_auth
Here is the function in the controller:
Code:
public function terms_of_use()
{
if ($this->ion_auth->logged_in())
{
$this->data['accept'] = array('name' => 'accept',
'id' => 'accept',
'type' => 'checkbox',
);
}
$this->data['main_header'] = 'MYPRINTCARD.INFO SERVICE AGREEMENT/TERMS OF USE';
$this->template
->title( 'Last Minute Printing', 'Terms of Use')
->set_layout('main')
->build('/terms_view', $this->data);
}
Here is my view:
Code:
Hello
<?php echo form_open("main/tou_accept");?>
<?php echo form_checkbox($accept);?>Accept<?php echo form_submit('submit', 'Submit');?>
<?php echo form_close()?>
Now
main as a template exists, but its not showing up. It does for index. And the form does not show up. I don;t understand why not.
All that shows up is "Hello"
[EDIT] NEVER MIND, seems some of my controllers have the form loaded, I put it in the auto loader and it works fine... Sorry for the waste of time, still getting used to CI
[/EDIT]