Hey all! I’m excited, after weeks of preparation and months of iterative tweaking, to finally release my first full contribution to the CodeIgniter community: The CodeIgniter Template library.
The Template library, written for the CodeIgniter PHP-framework, is a wrapper for CI’s View implementation. Template is a reaction to the numerous questions from the CI community regarding how one would display multiple views for one controller, and how to embed “views within views” in a standardized fashion. In addition, Template provides extra Views loading capabilities and shortcuts for including CSS, JavaScript, and other common elements in your final rendered HTML.
Using Template looks like this:
$this->template->write('title', 'Introduction to Template');
$this->template->write_view('content', 'blog/posts', $this->blog->get_posts());
$this->template->load();Look interesting? Head over to the Template Library homepage to begin using Template in your next CodeIgniter application.
Well, it’s late and the sleeping pills are kicking in, so I hope I haven’t overlooked anything in this release. I’ll be around for support, of course.
Cheers! 😜