1,7 → 1,7 |
<?php |
|
require_once 'application/views/IndexView.php'; |
require_once 'application/models/mappers/SeriesMapper.php'; |
// require_once 'application/models/mappers/SeriesMapper.php'; |
|
class IndexController extends \PointedEars\PHPX\Controller |
{ |
25,38 → 25,6 |
$data = array( |
'urns' => array( |
'wiki' => 'http://de.wikipedia.org/wiki/' |
) |
); |
|
$serien = SeriesMapper::getInstance()->getList($serien); |
|
foreach ($serien as $key => &$serie) |
{ |
if ($serie->total > 0) |
{ |
if (!$serie->ignore && $serie->percentage < $min_percentage) |
{ |
$min_percentage = $serie->percentage; |
$min_series = $key; |
} |
} |
} |
|
$this->assign('serien', $serien); |
$this->assign('min_series', $min_series); |
$this->render(); |
} |
|
private function oldIndexAction () |
{ |
require_once 'data.inc'; |
|
$min_percentage = 100; |
$min_series = null; |
|
$data = array( |
'urns' => array( |
'wiki' => 'http://de.wikipedia.org/wiki/' |
), |
'list' => &$serien |
); |