[eluser]Martin Penev[/eluser]
Hi there,
I'm programming the backend of a snowboard community-like site for a friend.
There's gonna be a news and a gallery module. I'm going to use CI for as my basic framework and I've dugged into the user guide a lot and tried a few things out. Works excellent.
In order to keep a very high degree of modularity, i'd like to have split everything to modules as far as it's possible. So basically, I'd like to split the HTML output into 2 main regions: header and body. Simple. I wanted to use the output class to manually tell the framework what and when something should be output.
I tried a code like this:
Code:
$data['qNewsTypes'] = $this->news_model->getNewsTypes();
$strHTMLBody = $this->load->view('news/news_add', $data);
$this->output->set_output($strHTMLBody);
$this->output->_display();
Simply put: First there's gonna be everything that should be within a header, then comes the body and finally everythings gonna be output.
But somehow the code above doesn't work. Maybe it's because I clearly lack experience in CI, so I'm asking of a little help
What's a better solution?
Thanks for your help in advance!