Welcome Guest, Not a member yet? Register   Sign In
News and statistics in the left column
#11

[eluser]got 2 doodle[/eluser]
Great glad you have a solution
I tried this and it worked
In parent controller
Code:
function Site_Controller()
        {
        
            // Call parent constructor
            parent::Controller();
        $sample['test_one']="test one";
        $sample['test_two']="test two";
        $this->load->vars($sample);
Next view is called by child controller (home.php in this case)
home.php does not make any reference at all to $sample array or $test_two variable

in view
Code:
<?php echo $test_two ?>

outputs 'test two'

doodle


Messages In This Thread
News and statistics in the left column - by El Forum - 12-06-2008, 10:58 AM
News and statistics in the left column - by El Forum - 12-06-2008, 11:57 AM
News and statistics in the left column - by El Forum - 12-06-2008, 12:03 PM
News and statistics in the left column - by El Forum - 12-06-2008, 02:09 PM
News and statistics in the left column - by El Forum - 12-08-2008, 08:53 AM
News and statistics in the left column - by El Forum - 12-08-2008, 09:09 AM
News and statistics in the left column - by El Forum - 12-08-2008, 09:56 AM
News and statistics in the left column - by El Forum - 12-08-2008, 12:45 PM
News and statistics in the left column - by El Forum - 12-08-2008, 12:47 PM
News and statistics in the left column - by El Forum - 12-08-2008, 01:11 PM
News and statistics in the left column - by El Forum - 12-08-2008, 01:25 PM
News and statistics in the left column - by El Forum - 12-08-2008, 01:31 PM
News and statistics in the left column - by El Forum - 12-08-2008, 01:38 PM
News and statistics in the left column - by El Forum - 12-09-2008, 05:26 AM
News and statistics in the left column - by El Forum - 12-09-2008, 10:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB