Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| en:slam4:php:phalcon:jquery [2015/02/06 23:50] – [1- Installation] jcheron | en:slam4:php:phalcon:jquery [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Phalcon-JQuery ====== | ====== Phalcon-JQuery ====== | ||
| - | {{: | + | < |
| - | + | |< 100% >| | |
| - | Phalcon-JQuery is a PHP library compatible with the Framework Phalcon. It allows to easily integrate jQuery, jQuery UI or [[http:// | + | |{{: |
| + | < | ||
| ===== -- Installation ===== | ===== -- Installation ===== | ||
| - | - Download Phalcon-JQuery on [[https:// | + | |
| - Unzip the archive in a local folder and copy the Ajax folder and his content in the folder libraries defined in your Phalcon configuration file : | - Unzip the archive in a local folder and copy the Ajax folder and his content in the folder libraries defined in your Phalcon configuration file : | ||
| - | {{: | + | < |
| + | |< 100% >| | ||
| + | |{{: | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ) | ||
| + | </ | ||
| + | </ | ||
| + | < | ||
| ===== -- Configuration ===== | ===== -- Configuration ===== | ||
| + | ==== -- Service injection ==== | ||
| + | For adding Phalcon-JQuery to a Phalcon project, it is necessary to inject the JQuery service at application startup : | ||
| + | <sxh php; | ||
| + | $di-> | ||
| + | $jquery= new JsUtils(array(" | ||
| + | $jquery-> | ||
| + | $jquery-> | ||
| + | return $jquery; | ||
| + | }); | ||
| + | </ | ||
| + | ==== -- JS libraries integration ==== | ||
| ===== -- Usage ===== | ===== -- Usage ===== | ||