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/07 02:09] – jcheron | en:slam4:php:phalcon:jquery [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 6: | Ligne 6: | ||
| < | < | ||
| ===== -- 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 ===== | ||