Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 174 → Rev 186

/trunk/media/video/series/application/controllers/IndexController.php
1,10 → 1,9
<?php
 
require_once 'Controller.php';
 
require_once 'application/views/IndexView.php';
// require_once 'application/models/mappers/SeriesMapper.php';
 
class IndexController extends Controller
class IndexController extends \PointedEars\PHPX\Controller
{
/**
* Creates a new controller for the index view
110,4 → 109,11
$this->assign('min_series', $min_series);
$this->render();
}
 
// public function importAction ()
// {
// require_once 'data.inc';
// header('Content-Type: text/html; charset=UTF-8');
// SeriesMapper::getInstance()->importAll($serien);
// }
}
/trunk/media/video/series/application/views/IndexView.php
1,6 → 1,6
<?php
 
class IndexView extends View
class IndexView extends \PointedEars\PHPX\View
{
/**
* Creates a new index view
/trunk/media/video/series/index.php
2,9 → 2,9
 
require_once 'Application.php';
 
require_once 'application/models/databases/seriometer/SeriOMeterDb.php';
// require_once 'application/models/databases/seriometer/SeriOMeterDb.php';
 
$application = Application::getInstance();
$application->setDefaultDatabase(
$application->registerDatabase('seriometer', new SeriOMeterDb()));
$application = \PointedEars\PHPX\Application::getInstance();
// $application->setDefaultDatabase(
// $application->registerDatabase('seriometer', new SeriOMeterDb()));
$application->run();