diff options
| author | 2014-12-05 15:27:56 +0100 | |
|---|---|---|
| committer | 2014-12-05 15:27:56 +0100 | |
| commit | c6a682deb94111c1e14cf10e565da3f4214f02dc (patch) | |
| tree | 38bdc2fe627735e0453b8a930ea2b71ad38bb69c /lib/Minz/Extension.php | |
| parent | f8aa66152fcab24ae7cd9663dab0c0c96a45ca24 (diff) | |
Extensions can define new views
- View base pathname is set to the extension directory
- An extension can now override an existing controller / view
See https://github.com/FreshRSS/FreshRSS/issues/252
Diffstat (limited to 'lib/Minz/Extension.php')
| -rw-r--r-- | lib/Minz/Extension.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Minz/Extension.php b/lib/Minz/Extension.php index ad3465640..5a61ba2e0 100644 --- a/lib/Minz/Extension.php +++ b/lib/Minz/Extension.php @@ -144,9 +144,6 @@ class Minz_Extension { * FreshExtension_<base_name>_Controller. */ public function registerController($base_name) { - $controller_name = 'FreshExtension_' . $base_name . '_Controller'; - $filename = $this->path . '/controllers/' . $base_name . 'Controller.php'; - - Minz_Dispatcher::registerController($base_name, $controller_name, $filename); + Minz_Dispatcher::registerController($base_name, $this->path); } } |
