[eluser]Phil Sturgeon[/eluser]
Of course it can be done as simply as that. If you really boild my library down it comes to the exact same method, which is:
Code:
$data['page_content'] = $this->load->view($file_name, $data, TRUE);
$this->load->view('layout', $data);
Although most will look at libraries like mine or YAST and think they are overcomplicated bloat-code, you will find as you start to develop more applications that you need something extra. For example, you need a way to easily wrap another view around your sub-page and the main layout, or you need a way to dynamically work out which folder the file is in, or create navigation on the fly.
Automatic breadcrumb and title generation are all extra fun added to the mix. Support for modular seperation too!
Id ignore my error message and info methods though, those are still not properly thought through...