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 | ||
| info:concrete5:c56:homepage [2025/12/03 10:31] – [bug install] radeff | info:concrete5:c56:homepage [2025/12/03 10:31] (Version actuelle) – [Packages] radeff | ||
|---|---|---|---|
| Ligne 38: | Ligne 38: | ||
| </ | </ | ||
| - | |||
| - | ==== datatable ==== | ||
| - | |||
| - | |||
| - | https:// | ||
| - | {{tag> | ||
| - | ===== Packages ===== | ||
| - | |||
| - | Addons/ | ||
| - | |||
| - | [[http:// | ||
| - | |||
| - | {{namespace> | ||
| - | |||
| - | ===== db ===== | ||
| - | |||
| - | < | ||
| - | The database object | ||
| - | |||
| - | You can load the active database object within any function or class by running the following command: | ||
| - | |||
| - | $db= Loader:: | ||
| - | |||
| - | This makes the database object available in our current scope, meaning that we can now fetch and manipulate data. | ||
| - | Connecting to other databases | ||
| - | |||
| - | If you need to connect to a different database, you can switch out the active database object on the fly: | ||
| - | |||
| - | $db = Loader::db( ' | ||
| - | |||
| - | When you’re done working with the other database, return to your default concrete5 database by clearing out the connection details: | ||
| - | |||
| - | $db = Loader:: | ||
| - | |||
| - | $db-> | ||
| - | </ | ||