[eluser]ehicks727[/eluser]
[quote author="gtech" date="1210694414"]I am reading in between the lines some what...
you should not need to pass anything to the view, as $this will be available in the view as its loaded within the controller class.
Code:
$this->content->addColumn1Unit($this->load->view('quote1', array(), true));
so in the quote1 view you should be able to access
Code:
<?=$this->validation->name_error?>
<?=$this->fields['name']?>
[/quote]
That's what I thought too! But it's not working when you 'render' the view into a variable that gets passed to another array... well, at least it's not working for me.
I can call this from the first view that I'm rendering and get nothing
Code:
<?php echo $this->validation->error_string; ?>
However, I can echo that from the controller and it works fine, and I can echo it from the 'final' view and it works fine too.
I'm guessing there's something about the function below that loses scope or something.
Code:
$this->load->view('quote1', $data, true));
Anyone have any ideas? Thanks.