summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMike Estes <[email protected]>2013-08-16 22:08:19 -0700
committerMike Estes <[email protected]>2013-08-16 22:08:19 -0700
commita9b6e52ea8d301280a6320f510eb5af8f33ebd07 (patch)
tree72b53577f08a7eea03b2727c4c0a5de2f061220f /docs
parent01112f5ac14b24aed8038cc0ae99801007ef26b8 (diff)
Add static method `get_config`
Diffstat (limited to 'docs')
-rw-r--r--docs/configuration.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/configuration.rst b/docs/configuration.rst
index 395a1eb..75d77f7 100644
--- a/docs/configuration.rst
+++ b/docs/configuration.rst
@@ -65,6 +65,16 @@ once.
'etc' => 'etc'
));
+Use the ``get_config`` method to read current settings.
+
+.. code-block:: php
+
+ <?php
+ $isLoggingEnabled = ORM::get_config('logging');
+ ORM::configure('logging', false);
+ // some crazy loop we don't want to log
+ ORM::configure('logging', $isLoggingEnabled);
+
Database authentication details
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^