Welcome Guest, Not a member yet? Register   Sign In
Run functions in index method
#5

[eluser]Casperlarsen94[/eluser]
Yes, of course.

File view
Code:
<?php
echo form_open('register/validate');
echo form_input('name', set_value('name', 'Name'));
echo '<br />';
echo form_input('club', set_value('club', 'Club'));
echo '<br />';
echo form_input('mail', set_value('mail', 'Mail'));
echo '<br />';
echo form_password('password', set_value('password', 'Password'));
echo '<br />';
echo form_submit('submit', 'Register');
echo anchor('login', 'Login');
echo '<br />';
echo validation_errors();
?&gt;

Top of the template
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;Title&lt;/title&gt;
&lt;link rel="stylesheet" href="&lt;?php echo base_url();?&gt;style/default.css" type="text/css" /&gt;
&lt;/head&gt;

&lt;body&gt;

Bottom of template
Code:
&lt;/body&gt;
&lt;/html&gt;

The file that merge the top and the bottom of the template together
Code:
&lt;?php
$this->load->view('template/top');
$this->load->view($content);
$this->load->view('template/bottom');
?&gt;


Messages In This Thread
Run functions in index method - by El Forum - 11-10-2010, 03:57 AM
Run functions in index method - by El Forum - 11-10-2010, 06:40 AM
Run functions in index method - by El Forum - 11-10-2010, 07:02 AM
Run functions in index method - by El Forum - 11-11-2010, 06:14 AM
Run functions in index method - by El Forum - 11-11-2010, 06:33 AM
Run functions in index method - by El Forum - 11-11-2010, 06:59 AM
Run functions in index method - by El Forum - 11-12-2010, 03:23 AM
Run functions in index method - by El Forum - 11-12-2010, 08:20 AM
Run functions in index method - by El Forum - 11-12-2010, 03:52 PM
Run functions in index method - by El Forum - 11-12-2010, 09:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB