Yaf_Application::getDispatcher
(Yaf >=1.0.0)
Yaf_Application::getDispatcher — Get Yaf_Dispatcher instance
Parameters
This function has no parameters.
Return Values
Examples
Example #1 Yaf_Application::getDispatcher()example
<?php
$config = array(
"application" => array(
"directory" => realpath(dirname(__FILE__)) . "/application",
),
);
/** Yaf_Application */
$application = new Yaf_Application($config);
print_r($application->getDispatcher());
?>
The above example will output something similar to:
Yaf_Dispatcher Object ( [_router:protected] => Yaf_Router Object ( [_routes:protected] => Array ( [_default] => Yaf_Route_Static Object ( ) ) [_current:protected] => ) [_view:protected] => [_request:protected] => Yaf_Request_Http Object ( [module] => [controller] => [action] => [method] => Cli [params:protected] => Array ( ) [language:protected] => [_exception:protected] => [_base_uri:protected] => [uri:protected] => [dispatched:protected] => [routed:protected] => ) [_plugins:protected] => Array ( ) [_auto_render:protected] => 1 [_return_response:protected] => [_instantly_flush:protected] => [_default_module:protected] => Index [_default_controller:protected] => Index [_default_action:protected] => index [_response] => Yaf_Response_Cli Object ( [_header:protected] => Array ( ) [_body:protected] => [_sendheader:protected] => ) )
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Другие базовые расширения
- Yet Another Framework
- Функция Yaf_Application::app() - Retrieve an Application instance
- Функция Yaf_Application::bootstrap() - Call bootstrap
- Функция Yaf_Application::clearLastError() - Clear the last error info
- Функция Yaf_Application::__clone() - Yaf_Application can not be cloned
- Функция Yaf_Application::__construct() - Yaf_Application constructor
- Функция Yaf_Application::__destruct() - The __destruct purpose
- Функция Yaf_Application::environ() - Retrive environ
- Функция Yaf_Application::execute() - Execute a callback
- Функция Yaf_Application::getAppDirectory() - Get the application directory
- Функция Yaf_Application::getConfig() - Retrive the config instance
- Функция Yaf_Application::getDispatcher() - Get Yaf_Dispatcher instance
- Функция Yaf_Application::getLastErrorMsg() - Get message of the last occurred error
- Функция Yaf_Application::getLastErrorNo() - Get code of last occurred error
- Функция Yaf_Application::getModules() - Get defined module names
- Функция Yaf_Application::run() - Start Yaf_Application
- Функция Yaf_Application::setAppDirectory() - Change the application directory
- Функция Yaf_Application::__sleep() - Yaf_Application can not be serialized
- Функция Yaf_Application::__wakeup() - Yaf_Application can not be unserialized
Коментарии
404 Not Found