From 0282e68119d2f3c575d4050ac4b9e1f57992f729 Mon Sep 17 00:00:00 2001 From: Roy Lindauer Date: Thu, 19 Sep 2013 23:33:46 -0700 Subject: [PATCH] Renamed IndexController to HomeController to avoid errors with Apache Multiviews. Related to issue #74 Updated ajax url request path in index.phtml --- PHPCI/Controller/{IndexController.php => HomeController.php} | 4 ++-- PHPCI/View/{Index => Home}/index.phtml | 2 +- bootstrap.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename PHPCI/Controller/{IndexController.php => HomeController.php} (94%) rename PHPCI/View/{Index => Home}/index.phtml (96%) diff --git a/PHPCI/Controller/IndexController.php b/PHPCI/Controller/HomeController.php similarity index 94% rename from PHPCI/Controller/IndexController.php rename to PHPCI/Controller/HomeController.php index 2404a047..da9babf0 100644 --- a/PHPCI/Controller/IndexController.php +++ b/PHPCI/Controller/HomeController.php @@ -12,12 +12,12 @@ namespace PHPCI\Controller; use b8; /** -* Index Controller - Displays the PHPCI Dashboard. +* Home Controller - Displays the PHPCI Dashboard. * @author Dan Cryer * @package PHPCI * @subpackage Web */ -class IndexController extends \PHPCI\Controller +class HomeController extends \PHPCI\Controller { public function init() { diff --git a/PHPCI/View/Index/index.phtml b/PHPCI/View/Home/index.phtml similarity index 96% rename from PHPCI/View/Index/index.phtml rename to PHPCI/View/Home/index.phtml index e642b62e..1f746a8c 100644 --- a/PHPCI/View/Index/index.phtml +++ b/PHPCI/View/Home/index.phtml @@ -80,6 +80,6 @@ \ No newline at end of file diff --git a/bootstrap.php b/bootstrap.php index 175bba00..88435d15 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -38,7 +38,7 @@ require_once(APPLICATION_PATH . 'vendor/autoload.php'); // Load configuration if present: $conf = array(); $conf['b8']['app']['namespace'] = 'PHPCI'; -$conf['b8']['app']['default_controller'] = 'Index'; +$conf['b8']['app']['default_controller'] = 'Home'; $conf['b8']['view']['path'] = dirname(__FILE__) . '/PHPCI/View/'; $config = new b8\Config($conf);