I am developing a website in PHP and I would like to use the mvc framework for this, since I want to gain experience with PHP frameworks.
I looked at Zend, CakePHP, and CodeIgniter, and I could not find an intuitive way to accomplish this.
What I need to do is create a layout that will, for example:
<html>
<head>
</head>
<body>
<div id='banner'></div>
<div id='menu'><?php $this->layout()->menu ?></div>
<div id='container'><?php $this->layout()->content ?></div>
<div id='ads'><?php $this->layout()->ads ?>
<div id='footer'>blah</div>
</body>
</html>
I am looking for a framework that could do this simply without a lot of hacks, as this should just be done from my point of view.
This will lead to the display of menus, content and announcements from individual controllers and views and, of course, will be dynamic content. I do not want to enter the menu code in all kinds ...
Maybe it's simple, and I'm just wrong?
Any help is appreciated.
Thanks,
Ben
Ben