updated autoload to conform to new directory structure
This commit is contained in:
parent
751d986f29
commit
dab37a08c0
@ -23,14 +23,23 @@
|
||||
$path = dirname(__FILE__);
|
||||
$file = '';
|
||||
switch ($className) {
|
||||
//controllers
|
||||
case 'PanaceaControllerFactory':
|
||||
case 'PanaceaWikiController':
|
||||
case 'WikiViewFactory':
|
||||
case 'PanaceaDefaultController':
|
||||
case 'PanaceaViewFactory':
|
||||
$file = "$path/lib/controllers/$className.php";
|
||||
break;
|
||||
|
||||
//handlers
|
||||
case 'PanaceaPostHandlerFactory':
|
||||
case 'WikiPagePostHandler':
|
||||
$file = "$path/lib/$className.php";
|
||||
$file = "$path/lib/controllers/handlers/$className.php";
|
||||
break;
|
||||
|
||||
//views
|
||||
case 'WikiViewFactory':
|
||||
case 'PanaceaViewFactory':
|
||||
$file = "$path/lib/views/$className.php";
|
||||
break;
|
||||
|
||||
case 'WikiPageView':
|
||||
@ -51,7 +60,7 @@
|
||||
case 'PanaceaMenuView':
|
||||
case 'PanaceaFooterView':
|
||||
case 'PanaceaWelcomeView':
|
||||
$file = "$path/lib/views/$className.php";
|
||||
$file = "$path/lib/views/system/$className.php";
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user