-
Notifications
You must be signed in to change notification settings - Fork 0
TinyButStrong Template Engine
This is a template library that wraps around [url=http://www.tinybutstrong.com]TinyButStrong[/url].
[h3]FILES[/h3]
[b]application/init/init_tbswrapper.php[/b] [code] <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
if ( ! class_exists('Tbswrapper')) { require_once(APPPATH.'libraries/tbswrapper'.EXT); }
$obj =& get_instance(); $obj->tbswrapper = new Tbswrapper(); $obj->ci_is_loaded[] = 'tbswrapper';
?> [/code]
[b]application/libraries/tbswrapper.php[/b] [code] [/code]
[h3]EXAMPLES[/h3]
Like any CI library, you can either autoload it:
[b]configs/autoload.php[/b]
[code]$autoload['core'] = array('tbswrapper');[/code]
Or, load it manually inside any controller method:
[code]$this->load->library('tbswrapper');[/code]
[h4]Example of usage from controller method:[/h4]
[code] [/code]
[h4]...[/h4]
[code] [/code]
- Original author: Derek Jones
- How to extend helpers: See User Guide
- Modified by: Thomas Stapleton (id, classes, selected country option and all option)
- Modified by: Bradley De-Lar (construct, setLayout example)