From dab37a08c03d63d6f3510fabf1db8a26c1481aaf Mon Sep 17 00:00:00 2001 From: tmont Date: Mon, 20 Oct 2008 04:44:55 +0000 Subject: [PATCH] updated autoload to conform to new directory structure --- src/bootstrap.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/bootstrap.php b/src/bootstrap.php index ae031d0..2eb02c4 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -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; }