Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated readme to include note about modular use.

HG: Enter commit message.  Lines beginning with 'HG:' are removed.
  • Loading branch information...
commit 5e813b4106f0dac1c2f99bcb67219931b9cb2ec7 1 parent ff6be36
@anaxamaxan authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 README.markdown
View
11 README.markdown
@@ -35,6 +35,17 @@ simply extend your model from the `ActiveRecord\Model` class and your model
will be ready for use (aside from any extra configuration you may want to add
later).
+### Using with modules
+
+PHPActiveRecord can be used in a modular application. After the spark is loaded,
+you can call, for example in a `users` module:
+
+ $this->phpactiverecord->add_model_path('modules/users/models');
+
+When calling a model method for the first time, PHPActiveRecord's autoload
+function will look for a model in each model path, starting with the
+most-recently added path.
+
Documentation
------------
Please sign in to comment.
Something went wrong with that request. Please try again.