环境搭建步骤:
-
安装composer,Linux安装命令如下: curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer Windows安装请参考http://docs.phpcomposer.com/00-intro.html#Installation-Windows
-
更新composer依赖,命令如下 composer update
-
增加nginx配置,注意根目录为 src/webroot,不完整示例如下: server { listen 80; server_name XXXservice.miyabaobei.com; root /yourpath/src/webroot; index service.php/web.php; #service.php内网服务,web.php外网服务 }
框架常用方法: ◆ 获取配置 $config = \F_Ice::$ins->workApp->config->get('busconf.qiniu');