Renamed IndexController to HomeController to avoid errors with Apache Multiviews. Related to issue #74

Updated ajax url request path in index.phtml
This commit is contained in:
Roy Lindauer 2013-09-19 23:33:46 -07:00
parent 19c643032e
commit 0282e68119
3 changed files with 4 additions and 4 deletions

View file

@ -12,12 +12,12 @@ namespace PHPCI\Controller;
use b8; use b8;
/** /**
* Index Controller - Displays the PHPCI Dashboard. * Home Controller - Displays the PHPCI Dashboard.
* @author Dan Cryer <dan@block8.co.uk> * @author Dan Cryer <dan@block8.co.uk>
* @package PHPCI * @package PHPCI
* @subpackage Web * @subpackage Web
*/ */
class IndexController extends \PHPCI\Controller class HomeController extends \PHPCI\Controller
{ {
public function init() public function init()
{ {

View file

@ -80,6 +80,6 @@
<script> <script>
setInterval(function() setInterval(function()
{ {
$('#latest-builds').load('<?= PHPCI_URL ?>index/latest'); $('#latest-builds').load('<?= PHPCI_URL ?>home/latest');
}, 10000); }, 10000);
</script> </script>

View file

@ -38,7 +38,7 @@ require_once(APPLICATION_PATH . 'vendor/autoload.php');
// Load configuration if present: // Load configuration if present:
$conf = array(); $conf = array();
$conf['b8']['app']['namespace'] = 'PHPCI'; $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/'; $conf['b8']['view']['path'] = dirname(__FILE__) . '/PHPCI/View/';
$config = new b8\Config($conf); $config = new b8\Config($conf);