Exemplo n.º 1
0
<?php

// Include controller
require_once $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "modulaise" . DIRECTORY_SEPARATOR . "scripts" . DIRECTORY_SEPARATOR . "php" . DIRECTORY_SEPARATOR . "modulaise-controller.php";
// Create a page using one of the template files from the templates folder
ModulaiseController::createPage("wide.php", basename(__FILE__, ".php"));
// define page contents
ModulaiseController::addModule("head", "bla_blank", "alternative.html");
ModulaiseController::addModule("head", "bla_blank");
// define page contents
ModulaiseController::addModule("foot", "bla_blank", "alternative.html");
ModulaiseController::addModule("foot", "bla_blank");
ModulaiseController::addModule("foot", "bla_blank", "alternative.html");
ModulaiseController::addModule("foot", "bla_blank");
ModulaiseController::addModule("foot", "bla_blank", "alternative.html");
ModulaiseController::addModule("foot", "bla_blank");
// define page contents
ModulaiseController::addModule("extra", "bla_blank");
// print the page
ModulaiseController::printPage();