Welcome Guest, Not a member yet? Register   Sign In
Codeigniter + twitter bootstrap + html5boilerplate + MY_Controller
#9

[eluser]Go-Trex[/eluser]
Hi Vesparny,

I grabbed a copy of your latest code and have begun to read though the code. While I understand most of it I have still got one question I could not find in the given comments and documentation on the Github page;

Is it possible to pass variables to the template though the controller. Normally you would use something like:

Code:
$data['variable1'] = 'My variable1 output';
$data['variable2'] = 'My variable2 output';
$this->load->view('welcome_message', $data);

Can you tell me and the community how to achieve this?! Thanks in advance.


Messages In This Thread
Codeigniter + twitter bootstrap + html5boilerplate + MY_Controller - by El Forum - 03-14-2012, 01:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB