Default Setting
APPPATH = /application
SYSTEMPATH = /vendor/codeigniter
VIEWPATH = /resource/views
CACHEPATH = /application/cache
Index path = /public/index.php
public function index(){
//load view
return view('filename'); //without extention .blade.php
//load view with array data
$data = array();
return view('filename', $data);
}
Stable Version (CI 3.1.9) Download here
Or unstable version (CI 3.2.0-dev) with git clone:
git clone https://github.com/teukuraja/ci3blade.git
- Cache Folder Permission Denied
sudo chown $USER:www-data application/cache
sudo chmod 775 application/cache
- Rewrite Module Disabled
sudo a2enmod rewrite
sudo service apache2 restart
- bcit-ci/CodeIgniter - Codeigniter Framework
- jenssegers/blade - Blade Templating Engine
- CI Version : 3.2.0-dev
- Blade Version 1.1.0
- PHP Version : ^5.6