Seri-o-meter: chdir('application') as now-required by PHPX
/trunk/media/video/series/application/models/Series.php |
---|
1,6 → 1,6 |
<?php |
require_once 'application/models/databases/seriometer/tables/SeriesTable.php'; |
require_once 'models/databases/seriometer/tables/SeriesTable.php'; |
class Series extends \PointedEars\PHPX\Model |
{ |
/trunk/media/video/series/application/models/mappers/SeriesMapper.php |
---|
1,6 → 1,6 |
<?php |
require_once 'application/models/Series.php'; |
require_once 'models/Series.php'; |
class SeriesMapper extends \PointedEars\PHPX\Db\Mapper |
{ |
/trunk/media/video/series/application/controllers/IndexController.php |
---|
1,7 → 1,7 |
<?php |
require_once 'application/views/IndexView.php'; |
require_once 'application/models/mappers/SeriesMapper.php'; |
require_once 'views/IndexView.php'; |
require_once 'models/mappers/SeriesMapper.php'; |
class IndexController extends \PointedEars\PHPX\Controller |
{ |
17,7 → 17,7 |
public function indexAction () |
{ |
require_once 'data.inc'; |
require_once '../data.inc'; |
$min_percentage = 100; |
$min_series = null; |
49,7 → 49,7 |
private function oldIndexAction () |
{ |
require_once 'data.inc'; |
require_once '../data.inc'; |
$min_percentage = 100; |
$min_series = null; |
/trunk/media/video/series/application/views/IndexView.php |
---|
24,7 → 24,7 |
*/ |
public function __construct ($template) |
{ |
parent::__construct('application/layouts/index/index.phtml'); |
parent::__construct('layouts/index/index.phtml'); |
require_once 'Zend/Loader/StandardAutoloader.php'; |
$loader = new Zend\Loader\StandardAutoloader(array('autoregister_zf' => true)); |
/trunk/media/video/series/index.php |
---|
1,9 → 1,9 |
<?php |
require_once 'Application.php'; |
chdir('application'); |
// require_once 'models/databases/seriometer/SeriOMeterDb.php'; |
// require_once 'application/models/databases/seriometer/SeriOMeterDb.php'; |
$application = \PointedEars\PHPX\Application::getInstance(); |
// $application->setDefaultDatabase( |
// $application->registerDatabase('seriometer', new SeriOMeterDb())); |