Welcome Guest, Not a member yet? Register   Sign In
unusual load->view issue. Sub view showing but not parent
#1

[eluser]otherjohn[/eluser]
Hi all,
I have a master template ("main_template") with $content being the placement of sub templates.
In my controller, I look at a variable and show a different subtemplate based on the var.

But recently I noticed one template is showing only the sub and not the main template.
here is the code

Code:
$page['content'] = $this->load->view('numberNoCom_view', $data,true);
                $this->load->view('main_template', $page, false);
numberNoCom_view loads just fine, but the main_template doesnt load.


The code for the fully working one is
Code:
$page['content'] = $this->load->view('number_view', $data,true);
                $this->load->view('main_template', $page, false);
both templates load.

Anyone have any ideas on how I can track down what is going on here?
john
#2

[eluser]otherjohn[/eluser]
DUHHH. found it. it was an error on the template that I didnt see in the view source.
Sorry




Theme © iAndrew 2016 - Forum software by © MyBB