updated autoload to conform to new directory structure

This commit is contained in:
tmont 2008-10-20 04:44:55 +00:00
parent 751d986f29
commit dab37a08c0

View File

@ -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;
}