Ejemplo n.º 1
0
 public function display()
 {
     $this->page->hasLayout(false);
     return parent::display();
 }
Ejemplo n.º 2
0
Archivo: index.php Proyecto: demental/m
<?php

/**
* M PHP Framework
* @package      M
*/
/**
* M PHP Framework
*
* Controller main file for default app
*
* @package      M
* @author       Arnaud Sellenet <demental at github>

* @license      http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
* @version      0.1
*/
define('APP_NAME', '{$APP_NAME}');
require '{$APP_RELATIVE_FILE_TO_ROOT}/M_Startup.php';
require APP_ROOT . 'app/' . APP_NAME . '/routing.php';
$result = Net_URL_Mapper::getInstance()->match($_GET['route']);
$getvalues = array_merge($result, $_GET);
$requestvalues = array_merge($_POST, $get);
$request = new MRequest($getvalues, $requestvalues);
$d = new Dispatcher($request);
$d->setConfig(PEAR::getStaticProperty('Dispatcher', 'global'));
$d->execute();
header('Content-type:text/html; charset=utf-8');
echo $d->display();
Ejemplo n.º 3
0
 public function redirect404($modulaction, $vars = null, $lang = null, $secure = null)
 {
     header('Status: 404');
     header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
     $arr = explode('/', $modulaction);
     $d = new Dispatcher($arr[0], $arr[1], $this->_params);
     $d->execute();
     echo $d->display();
     exit(0);
 }