Welcome Guest, Not a member yet? Register   Sign In
Application structure question
#18

[eluser]beemr[/eluser]
Exactly. You could also keep your variables at the controller level. In fact, it might be necessary depending on how much context scope you need.
Code:
$data['method'] = 'user_status';
$this->load->view('template',$data);
Then in view/template.php:
Code:
<?php $this->load->view('header'); ?>
<?=module('my_library',$method);>
<?php $this->load->view('footer'); ?>


Messages In This Thread
Application structure question - by El Forum - 07-20-2008, 09:54 PM
Application structure question - by El Forum - 07-20-2008, 10:33 PM
Application structure question - by El Forum - 07-20-2008, 10:58 PM
Application structure question - by El Forum - 07-21-2008, 10:01 PM
Application structure question - by El Forum - 07-22-2008, 10:35 PM
Application structure question - by El Forum - 07-22-2008, 11:39 PM
Application structure question - by El Forum - 07-23-2008, 02:09 AM
Application structure question - by El Forum - 07-23-2008, 02:36 AM
Application structure question - by El Forum - 07-23-2008, 02:48 AM
Application structure question - by El Forum - 07-23-2008, 03:26 AM
Application structure question - by El Forum - 07-23-2008, 03:42 AM
Application structure question - by El Forum - 07-23-2008, 10:45 AM
Application structure question - by El Forum - 07-23-2008, 11:00 AM
Application structure question - by El Forum - 07-23-2008, 11:49 AM
Application structure question - by El Forum - 07-23-2008, 12:08 PM
Application structure question - by El Forum - 07-23-2008, 12:57 PM
Application structure question - by El Forum - 07-23-2008, 01:55 PM
Application structure question - by El Forum - 07-23-2008, 02:59 PM
Application structure question - by El Forum - 07-27-2008, 09:51 PM
Application structure question - by El Forum - 10-01-2008, 02:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB