chaclee / ci-blade

Laravel blade template engine for Codeigniter 3.0+!
GNU General Public License v3.0
19 stars 9 forks source link
ci-blade

ci-blade

Laravel blade template engine for Codeigniter 3.0+!

Require

PHP:>=PHP5.4.*

Use

0x0.1 Set cache path:

application/libraries/Blade.php $cachePath = APPPATH . 'cache/views'; // view cache directory

0x1.1 Simple use

$this->blade->view('welcome_message');

0x1.2 Pass vars to template

$this->blade->view('welcome_message', $vars);

Laravel Blade Document

https://laravel.com/docs/5.1/blade