Skip to content

Commit

Permalink
Added info about extension class
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed Feb 5, 2015
1 parent 376ba76 commit 3132b60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/directory-structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Let's take a closer look at each directory and file, and understand how it works
* ``class-fw-extension-{extension-name}.php`` - If the extension has some advanced functionality,
it can define a class that will be the instance of the extension returned by ``fw()->extensions->get('{extension-name}')``.
By default an instance of default class will be created, which is an empty class that just extends the ``FW_Extension`` class.
This file can't be overwritten.

* ``config.php`` - Configuration array, which is accessible through the ``$ext->get_config('key')`` method.
Users can customize it by creating the same file in
Expand Down

0 comments on commit 3132b60

Please sign in to comment.