Example #1
0
<?php

require_once 'config.php';
View::$title = 'High Fidelity Slideshow';
View::write('page', 'slideshow');
View::addStyle('css/slideshow.css');
View::addScript('js/galleria/galleria-1.4.2.min.js');
View::addScript('js/slideshow.js');
View::write('slideshowData', Slideshow::getSlideshowData());
View::$header = 'layout/empty/header';
View::$footer = 'layout/empty/footer';
View::renderCommonLayout('slideshow');
Example #2
0
<?php

require_once 'controller.php';
require_once 'view.php';
require_once 'model.php';
$model = new Model();
$controller = new Controller($model);
$view = new View($controller, $model);
//$controller->create_dummy();
echo $view->header();
echo $view->body();
echo $view->footer();