本文整理匯總了PHP中Dispatcher::display方法的典型用法代碼示例。如果您正苦於以下問題:PHP Dispatcher::display方法的具體用法?PHP Dispatcher::display怎麽用?PHP Dispatcher::display使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Dispatcher
的用法示例。
在下文中一共展示了Dispatcher::display方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: display
public function display()
{
$this->page->hasLayout(false);
return parent::display();
}
示例2: MRequest
<?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();
示例3: redirect404
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);
}