diff --git a/app/config/config.php b/app/config/config.php index 56c63a8..e64c123 100644 --- a/app/config/config.php +++ b/app/config/config.php @@ -8,7 +8,7 @@ * @author Timothy J. Warren * @copyright Copyright (c) 2011 - 2012 * @link https://github.com/aviat4ion/miniMVC - * @license http://philsturgeon.co.uk/code/dbad-license + * @license http://philsturgeon.co.uk/code/dbad-license */ // -------------------------------------------------------------------------- @@ -19,8 +19,8 @@ * @package miniMVC * @subpackage App */ - -// -------------------------------------------------------------------------- + +// -------------------------------------------------------------------------- /* |-------------------------------------------------------------------------- diff --git a/app/config/db.php b/app/config/db.php index 751b9ad..7296388 100644 --- a/app/config/db.php +++ b/app/config/db.php @@ -8,7 +8,7 @@ * @author Timothy J. Warren * @copyright Copyright (c) 2011 - 2012 * @link https://github.com/aviat4ion/miniMVC - * @license http://philsturgeon.co.uk/code/dbad-license + * @license http://philsturgeon.co.uk/code/dbad-license */ // -------------------------------------------------------------------------- @@ -19,7 +19,7 @@ * @package miniMVC * @subpackage App */ - + // -------------------------------------------------------------------------- $db_conf = array( diff --git a/app/config/routes.php b/app/config/routes.php index efe86dd..7763cf4 100644 --- a/app/config/routes.php +++ b/app/config/routes.php @@ -8,7 +8,7 @@ * @author Timothy J. Warren * @copyright Copyright (c) 2011 - 2012 * @link https://github.com/aviat4ion/miniMVC - * @license http://philsturgeon.co.uk/code/dbad-license + * @license http://philsturgeon.co.uk/code/dbad-license */ // -------------------------------------------------------------------------- @@ -16,7 +16,7 @@ /** * File to configure routes * - * Routes work on simple/regex matching. + * Routes work on simple/regex matching. * * For a route mapping http://example.com/blog to the blog controller in the blog module: * 'blog' => 'blog/blog/index' @@ -26,7 +26,7 @@ * @package miniMVC * @subpackage App */ - + // -------------------------------------------------------------------------- return array( diff --git a/app/modules/welcome/controllers/welcome.php b/app/modules/welcome/controllers/welcome.php index 17062cd..d7ffba8 100644 --- a/app/modules/welcome/controllers/welcome.php +++ b/app/modules/welcome/controllers/welcome.php @@ -8,7 +8,7 @@ * @author Timothy J. Warren * @copyright Copyright (c) 2011 - 2012 * @link https://github.com/aviat4ion/miniMVC - * @license http://philsturgeon.co.uk/code/dbad-license + * @license http://philsturgeon.co.uk/code/dbad-license */ // -------------------------------------------------------------------------- @@ -16,7 +16,7 @@ /** * Example Controller Class */ -class Welcome extends miniMVC\Controller { +class welcome extends miniMVC\Controller { /** * Initialize the constructor @@ -27,7 +27,7 @@ class Welcome extends miniMVC\Controller { { parent::__construct(); } - + /** * Default route for the controller * @@ -39,7 +39,7 @@ class Welcome extends miniMVC\Controller { $output = $this->page->set_message('info', "This is just a test message"); $this->page->build_footer(); } - + /** * welcome/php route * @@ -51,7 +51,7 @@ class Welcome extends miniMVC\Controller { phpinfo(); $output = ob_get_contents(); ob_end_clean(); - + $this->page->set_output($output); } } diff --git a/app/modules/welcome/models/welcome_model.php b/app/modules/welcome/models/welcome_model.php index 7a4e70b..4b8460b 100644 --- a/app/modules/welcome/models/welcome_model.php +++ b/app/modules/welcome/models/welcome_model.php @@ -8,7 +8,7 @@ * @author Timothy J. Warren * @copyright Copyright (c) 2011 - 2012 * @link https://github.com/aviat4ion/miniMVC - * @license http://philsturgeon.co.uk/code/dbad-license + * @license http://philsturgeon.co.uk/code/dbad-license */ // -------------------------------------------------------------------------- @@ -23,7 +23,7 @@ class Welcome_Model extends miniMVC\Model{ * * @return void */ - function __construct() + public function __construct() { parent::__construct(); } diff --git a/app/views/errors/error_404.php b/app/views/errors/error_404.php index e210433..b82ebbb 100644 --- a/app/views/errors/error_404.php +++ b/app/views/errors/error_404.php @@ -11,9 +11,9 @@