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:
parent
19c643032e
commit
0282e68119
|
@ -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()
|
||||||
{
|
{
|
|
@ -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>
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue