Table des matières

Bootstrap

Bootstrap module allows to generate the Bootstrap components and their default behavior from Phalcon controllers, then display in views.

-- Prerequisites

-- Service injection

It is necessary to inject the JQuery service at application startup, and instantiate Bootstrap:

$di->set("jquery",function(){
	$jquery= new JsUtils(array("driver"=>"Jquery"));
	$jquery->bootstrap(new Bootstrap());//for Twitter Bootstrap
	return $jquery;
});

-- js and css files inclusion

To continue