Change Log and Update Instructions
Version 1.4.1
Release Date: November 1, 2008
Version 1.4.1 is just a maintenance release and contains no additional features.
- Renamed the Template class to CI_Template. This means Template can be replaced/overloaded like core CI classes, and also allows you to have a template.php controller.
- Fixed a Docblock typo in libraries/Template.php that defined @version incorrectly as 1.2
- A few updates to the documentation, which now ships with Template. Look for the docs folder in the ZIP.
Upgrading from 1.4 to 1.4.1
- Replace application/libraries/Template.php with the new Template.php in 1.4.1
Version 1.4
Release Date: August 17, 2008
Version 1.4 introduces a method for dynamically setting the master template file.
- Added the set_master_temlplate() method for switching between template files that share the same regions.
Upgrading from 1.3 to 1.4
- Replace application/libraries/Template.php with the new Template.php in 1.4
Version 1.3
Release Date: August 15, 2008
Version 1.3 adds new features for working with template parsers like Smarty
- Parser class used by parse_view() method is now configurable, allowing you to use additional parsers like Smarty
- Master template can now be parsed by a parser class like the CI Template Parser or Smarty
- New, optional parameter added to render() method to force parsing of master template
Upgrading from 1.2.1 to 1.3
- Replace application/libraries/Template.php with the new Template.php in 1.3
- Optionally update config/template.php to configure new parser settings (not required).
Version 1.2.1
Release Date: August 08, 2008
Version 1.2.1 fixes a major bug found in 1.1 and 1.2 with the add_css() and add_js() methods. Upgrade RECOMMENDED.
- Fixed bug found in the add_css() and add_js() methods which called an undefined base_path() function, throwing fatal errors.
Upgrading from 1.2 to 1.2.1
- Replace application/libraries/Template.php with the new Template.php in 1.2.1
Version 1.2
Release Date: August 01, 2008
Version 1.2 is an update to the Template class API. Includes no bug fixes or new features.
- Deprecated load() method to avoid confusion with CI's Loader class. Replaced by render()
- Added render() method in place of deprecated load() method
- Removed undocumented display() method. Use render('region') instead
- Fixed violations of the coding standard
- Updated docs, fixed typos
Upgrading from 1.1 to 1.2
- Replace application/libraries/Template.php with the new Template.php in 1.2
- Update all calls to load() to use render() instead
- Update all calls to display() to use render('region') instead
Version 1.1
Release Date: July 29, 2008
Template 1.1 was the first public release.