Wallogit.com
2017 © Pedro Peláez
BlitzView replaces the default Laravel View class with the Blitz Template Engine., (*1)
wget http://alexeyrybak.com/blitz/blitz-0.8.6.tar.gz, (*2)
tar zxvf blitz-0.8.6.tar.gz, (*3)
cd blitz-0.8.6, (*4)
phpize, (*5)
./configure, (*6)
make install, (*7)
in php.ini add extension=blitz.so, (*8)
in your app composer.json add, (*9)
"require": {
...
"cxbyte/blitz-view": "dev-master"
},
then in your app root directory, (*10)
composer.phar update, (*11)
Loading composer repositories with package information Updating dependencies (including require-dev) - Installing cxbyte/blitz-view (dev-master 45223c2) Downloading: 100%, (*12)
Writing lock file Generating autoload files, (*13)
all fine, then in app config file (/app/config/app.php) add service provider, (*14)
'providers' => array(
...
'Cxbyte\BlitzView\BlitzViewServiceProvider',
),
You can use views as usually, (*15)
create view file index.tpl, (*16)
and in your controller, (*17)
class HomeController extends BaseController {, (*18)
public function HomePage()
{
return View::make('index', array());
}
}, (*19)
That's all :-), (*20)