Ejemplo n.º 1
0
    protected function printLayout($content)
    {
        ?>
<html>
<head>
    <title><?php 
        echo $this->getTitle();
        ?>
</title>
    <?php 
        echo LayoutModule::getHeadItemsAsHtml();
        ?>
    <?php 
        echo ResourceLoader::getResourceInjectionHtml();
        ?>
    <?php 
        $this->printHead();
        ?>
</head>
<body>
<?php 
        $this->printTop();
        echo LayoutModule::getBodyItemsAsHtml();
        $this->printPageHeading();
        $this->printContent($content);
        $this->printTail();
        ?>
</body>
</html>
    <?php 
    }
Ejemplo n.º 2
0
 public function testHeadItems()
 {
     // Reenable this as it was disabled in the previous test.
     ExceptionHandler::enableExceptionTrapping();
     LayoutModule::addHeadItem("this is some html");
     LayoutModule::addHeadItem("this is more html");
     $head = LayoutModule::getHeadItemsAsHtml();
     $this->assertEquals("this is some html\nthis is more html", $head);
 }