Subversion Repositories LCARS

Rev

Rev 198 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 198 Rev 202
Line 1... Line 1...
1
<?php
1
<?php
2
2
3
require_once 'application/views/IndexView.php';
3
require_once 'views/IndexView.php';
4
require_once 'application/models/mappers/SeriesMapper.php';
4
require_once 'models/mappers/SeriesMapper.php';
5
5
6
class IndexController extends \PointedEars\PHPX\Controller
6
class IndexController extends \PointedEars\PHPX\Controller
7
{
7
{
8
  /**
8
  /**
9
   * Creates a new controller for the index view
9
   * Creates a new controller for the index view
Line 15... Line 15...
15
    parent::__construct('IndexView');
15
    parent::__construct('IndexView');
16
  }
16
  }
17
17
18
  public function indexAction ()
18
  public function indexAction ()
19
  {
19
  {
20
    require_once 'data.inc';
20
    require_once '../data.inc';
21
21
22
    $min_percentage = 100;
22
    $min_percentage = 100;
23
    $min_series = null;
23
    $min_series = null;
24
24
25
    $data = array(
25
    $data = array(
Line 47... Line 47...
47
    $this->render();
47
    $this->render();
48
  }
48
  }
49
49
50
  private function oldIndexAction ()
50
  private function oldIndexAction ()
51
  {
51
  {
52
    require_once 'data.inc';
52
    require_once '../data.inc';
53
53
54
    $min_percentage = 100;
54
    $min_percentage = 100;
55
    $min_series = null;
55
    $min_series = null;
56
56
57
    $data = array(
57
    $data = array(