PHP Classes

File: framework/system/view/landing.php

Recommend this page to a friend!
  Classes of Will Tinsdeall   Boiler Framework   framework/system/view/landing.php   Download  
File: framework/system/view/landing.php
Role: Auxiliary script
Content type: text/plain
Description: Sample output
Class: Boiler Framework
Web application framework that implements MVC
Author: By
Last change:
Date: 10 years ago
Size: 664 bytes
 

Contents

Class file image Download
<?php
if ($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") {
\
Core\Router::loadView("template/top");
?>
<div id="main-container">
    <?php
}
   
$req = $_SERVER['REQUEST_URI'];
    if (
strpos($req, "?")) {
       
$req = substr($req, 0, strpos($req, "?"));
    }
   
$call = Core\Router::getController(
           
array_merge(
                    array(
"api"),
                   
explode("/", trim($req, "/"))
                    )
            );
   
    if (
$call[0] != "Controller\\Home") {
       
$obj = new $call[0];
       
call_user_func_array(array($obj, $call[1]), $call[2]);
    } else {
        \
Core\Router::loadView("home");
    }
if (
$_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") {
   
?>
</div>
<?php
\Core\Router::loadView("template/bottom");
}