en:slam4:php:phalcon:jquery:bootstrap

Bootstrap

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

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;
});

To continue

  • en/slam4/php/phalcon/jquery/bootstrap.txt
  • Dernière modification : il y a 6 ans
  • de 127.0.0.1