From e173f36bcb50451c49e5708de29fcb41267b41f4 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 2 Nov 2008 23:55:09 +0000 Subject: Create some basic infrastructure: * item model (contains basic item info, similar to the gx version) * module model (has info about each module and which version of it is installed) * added a very basic unit test to verify that we can create an instance of item * Updated our test controller to require a unit_test db config and call core::install if it hasn't been done already. New pattern: * core/helpers/core_installer.php creates core_installer helper. When we install a new module you call xxx_installer::install(), and when you want it to go away, you do xxx_installer::uninstall() Create --- core/controllers/welcome.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/controllers/welcome.php') diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 672252eb..061a4176 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -20,7 +20,7 @@ class Welcome_Controller extends Template_Controller { public $template = 'welcome.html'; - function Index() { + function index() { $this->template->syscheck = new View('welcome_syscheck.html'); $this->template->syscheck->errors = $this->_get_config_errors(); $this->_create_directories(); @@ -77,7 +77,7 @@ class Welcome_Controller extends Template_Controller { return $errors; } - function _error_handler() { + function _error_handler($x) { } function _create_directories() { -- cgit v1.2.3