Welcome Guest, Not a member yet? Register   Sign In
Pleeease: Help me with Site Structure - from one page example, to a multipage example
#4

[eluser]gwelter[/eluser]
Jumping into CodeIgniter without knowing PHP or OOP might be kind of like performing surgery before you've been to med school... If you want a strong foundation, you might want to tackle PHP first.

That being said, what exactly is your question? What are you seeing when the page loads? Are there any errors displayed or in the log? I don't see why your setup wouldn't work offhand, so my only guess is a syntax error somewhere.

I wonder why you're trying to load the views as data, though, since you're not doing anything with the data. You could just call:
Code:
$this->load->view('wrapper_top');
$this->load->view('header_view',array('header'=>'Header Zone'));
$this->load->view('content_view',array('product'=>$this->Product->getAll()));
$this->load->view('footer_view',array('footer'=>'Footer Zone'), TRUE);
$this->load->view('wrapper_bottom');

Or, more logically, include the wrapper portions in your header and footer. Hope that helps.


Messages In This Thread
Pleeease: Help me with Site Structure - from one page example, to a multipage example - by El Forum - 08-21-2009, 02:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB