当前位置: 首页>>代码示例>>PHP>>正文


PHP Director::dev_servers方法代码示例

本文整理汇总了PHP中Director::dev_servers方法的典型用法代码示例。如果您正苦于以下问题:PHP Director::dev_servers方法的具体用法?PHP Director::dev_servers怎么用?PHP Director::dev_servers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Director的用法示例。


在下文中一共展示了Director::dev_servers方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

 /**
  * Specify HTTP_HOST values that are development environments.
  * For information about environment types, see {@link Director::set_environment_type()}.
  * 
  * CAUTION: Domain information can easily be spoofed in HTTP requests,
  * we recommend to set this mode via {@link Director::set_environment_type()}
  * or an _ss_environment.php instead.
  * 
  * @param $servers array An array of HTTP_HOST values that should be treated as development environments.
  */
 static function set_dev_servers($servers)
 {
     Director::$dev_servers = $servers;
 }
开发者ID:eLBirador,项目名称:AllAboutCity,代码行数:14,代码来源:Director.php

示例2:

 /**
  * Specify HTTP_HOST values that are development environments.
  * For information about environment types, see {@link Director::set_environment_type()}.
  * 
  * CAUTION: Domain information can easily be spoofed in HTTP requests,
  * we recommend to set this mode via {@link Director::set_environment_type()}
  * or an _ss_environment.php instead.
  * 
  * @deprecated 3.0 Use Director::set_environment_type() or an _ss_environment.php instead.
  * @param $servers array An array of HTTP_HOST values that should be treated as development environments.
  */
 static function set_dev_servers($servers)
 {
     Deprecation::notice('3.0', 'Use Director::set_environment_type() or an _ss_environment.php instead.');
     Director::$dev_servers = $servers;
 }
开发者ID:nomidi,项目名称:sapphire,代码行数:16,代码来源:Director.php


注:本文中的Director::dev_servers方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。