en:slam4:php:phalcon:jquery:bootstrap

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
en:slam4:php:phalcon:jquery:bootstrap [2015/03/30 02:36] – La page de traduction a été créée jcheronen:slam4:php:phalcon:jquery:bootstrap [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 ====== Bootstrap ====== ====== 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:
 +
 +<sxh php;title:services.php;highlight:[3]>
 +$di->set("jquery",function(){
 + $jquery= new JsUtils(array("driver"=>"Jquery"));
 + $jquery->bootstrap(new Bootstrap());//for Twitter Bootstrap
 + return $jquery;
 +});
 +</sxh>
 +
 +==== -- js and css files inclusion ====
 +
 +//To continue
  • en/slam4/php/phalcon/jquery/bootstrap.1427675779.txt.gz
  • Dernière modification : il y a 6 ans
  • (modification externe)