Yaf_Application::environ

(Yaf >=1.0.0)

Yaf_Application::environ检索环境名

说明

public Yaf_Application::environ(): void

返回在 yaf.environ 定义的环境值,默认值为“product”。

参数

此函数没有参数。

返回值

示例

示例 #1 Yaf_Application::environ() 示例

<?php
$config
= array(
"application" => array(
"directory" => realpath(dirname(__FILE__)) . "/application",
),
);

/** Yaf_Application */
$application = new Yaf_Application($config);
print_r($application->environ());
?>

以上示例的输出类似于:

product
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top