Skip to content

TinyButStrong Template Engine

World Wide Web Server edited this page Jul 4, 2012 · 30 revisions

Category:Libraries

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]

Clone this wiki locally