Yaf_Application::environ

(Yaf >=1.0.0) Retrive environ public void Yaf_Application::environ ( void ) Retrive environ which was defined in yaf.environ which has a default value "product". Returns: Examples: Yaf_Application::environ() example <?php $config = array(     "application" => array(         "directory" => realpath(dirname(__FIL

Yaf_Application::__destruct

(Yaf >=1.0.0) The __destruct purpose public void Yaf_Application::__destruct ( void ) Returns:

Yaf_Application::__construct

(Yaf >=1.0.0) Yaf_Application constructor public Yaf_Application::__construct ( mixed $config [, string $envrion ] ) Instance a Yaf_Application. Parameters: config A ini config file path, or a config array If is a ini config file, there should be a section named as the one defined by yaf.environ, which is "product" by default. Note: If you use a ini configuration

Yaf_Application::__clone

(Yaf >=1.0.0) Yaf_Application can not be cloned private void Yaf_Application::__clone ( void ) Returns:

Yaf_Application::clearLastError

(Yaf >=2.1.2) Clear the last error info public Yaf_Application Yaf_Application::clearLastError ( void ) Returns: Examples: Yaf_Application::clearLastError() example <?php function error_handler($errno, $errstr, $errfile, $errline) {    Yaf_Application::app()->clearLastError();    var_dump(Yaf_Application::app()->g

Yaf_Application::bootstrap

(Yaf >=1.0.0) Call bootstrap public void Yaf_Application::bootstrap ([ Yaf_Bootstrap_Abstract $bootstrap ] ) Run a Bootstrap, all the methods defined in the Bootstrap and named with prefix "_init" will be called according to their declaration order, if the parameter bootstrap is not supplied, Yaf will look for a Bootstrap under application.directory. Parameters: bootstrap

Yaf_Application::app

(Yaf >=1.0.0) Retrieve an Application instance public static void Yaf_Application::app ( void ) Retrieve the Yaf_Application instance. Alternatively, we also could use Yaf_Dispatcher::getApplication(). Returns: A Yaf_Application instance, if no Yaf_Application was initialized before, NULL will be returned. See also:

yaml_parse

(PECL yaml >= 0.4.0) Parse a YAML stream mixed yaml_parse ( string $input [, int $pos = 0 [, int &$ndocs [, array $callbacks ]]] ) Convert all or part of a YAML document stream to a PHP variable. Parameters: input The string to parse as a YAML document stream. pos Document to extract from stream (-1 for all documents, 0 for firs

yaml_parse_url

(PECL yaml >= 0.4.0) Parse a Yaml stream from a URL mixed yaml_parse_url ( string $url [, int $pos = 0 [, int &$ndocs [, array $callbacks ]]] ) Convert all or part of a YAML document stream read from a URL to a PHP variable. Parameters: url url should be of the form "scheme://...". PHP will search for a protocol handler (also known as a wrapper) for that scheme. I

yaml_parse_file

(PECL yaml >= 0.4.0) Parse a YAML stream from a file mixed yaml_parse_file ( string $filename [, int $pos = 0 [, int &$ndocs [, array $callbacks ]]] ) Convert all or part of a YAML document stream read from a file to a PHP variable. Parameters: filename Path to the file. pos Document to extract from stream (-1 for all documents,