Yaf_Application::__sleep

(Yaf >=1.0.0) Yaf_Application can not be serialized private void Yaf_Application::__sleep ( void ) Returns:

Yaf_Application::setAppDirectory

(Yaf >=2.1.4) Change the application directory public Yaf_Application Yaf_Application::setAppDirectory ( string $directory ) Parameters: directory Returns:

Yaf_Application::run

(Yaf >=1.0.0) Start Yaf_Application public void Yaf_Application::run ( void ) Run a Yaf_Application, let the Yaf_Application accept a request and route this request, dispatch to controller/action and render response. Finally, return the response to the client. Returns:

Yaf_Application::getModules

(Yaf >=1.0.0) Get defined module names public array Yaf_Application::getModules ( void ) Get the modules list defined in config, if no one defined, there will always be a module named "Index". Returns: Examples: Yaf_Application::getModules() example <?php $config = array(     "application" => array(         "direct

Yaf_Application::getLastErrorNo

(Yaf >=2.1.2) Get code of last occurred error public int Yaf_Application::getLastErrorNo ( void ) Returns: Examples: Yaf_Application::getLastErrorNo() example <?php function error_handler($errno, $errstr, $errfile, $errline) {    var_dump(Yaf_Application::app()->getLastErrorNo());    var_dump(Yaf_Application::app()-&

Yaf_Application::getLastErrorMsg

(Yaf >=2.1.2) Get message of the last occurred error public string Yaf_Application::getLastErrorMsg ( void ) Returns: Examples: Yaf_Application::getLastErrorMsg() example <?php function error_handler($errno, $errstr, $errfile, $errline) {    var_dump(Yaf_Application::app()->getLastErrorMsg()); } $config = array(    

Yaf_Application::getDispatcher

(Yaf >=1.0.0) Get Yaf_Dispatcher instance public Yaf_Dispatcher Yaf_Application::getDispatcher ( void ) Returns: Examples: Yaf_Application::getDispatcher() example <?php $config = array(     "application" => array(         "directory" => realpath(dirname(__FILE__)) . "/application",     ), ); /** Yaf_Application 

Yaf_Application::getConfig

(Yaf >=1.0.0) Retrive the config instance public Yaf_Config_Abstract Yaf_Application::getConfig ( void ) Returns: A Yaf_Config_Abstract instance Examples: Yaf_Application::getConfig() example <?php $config = array(     "application" => array(         "directory" => realpath(dirname(__FILE__)) . "/application",  

Yaf_Application::getAppDirectory

(Yaf >=2.1.4) Get the application directory public Yaf_Application Yaf_Application::getAppDirectory ( void ) Parameters: directory Returns:

Yaf_Application::execute

(Yaf >=1.0.0) Execute a callback public void Yaf_Application::execute ( callable $entry, string $... ) This method is typically used to run Yaf_Application in a crontab work. Make the crontab work can also use the autoloader and Bootstrap mechanism. Parameters: entry a valid callback ... parameters will pass to the callback