ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
### Composer 创建项目 ~~~ composer create-project zendframework/skeleton-application ~~~ **安装选择** ~~~ Updating application configuration... Please select which config file you wish to inject 'Zend\Db' into: [0] Do not inject [1] config/modules.config.php Make your selection (default is 0): ~~~ 选 1 ### PHP 配置 PHP >= 7.1.0 启用 PHP 扩展 intl > php.ini ```ini extension=intl ``` ### Web 服务器配置 > Apache24/conf/extra/httpd-vhosts.conf ``` <VirtualHost *:80> ServerName zf-tutorial.localhost DocumentRoot /path/to/zf-tutorial/public SetEnv APPLICATION_ENV "development" <Directory /path/to/zf-tutorial/public> DirectoryIndex index.php AllowOverride All Require all granted </Directory> </VirtualHost> ``` **错误报告** > public/index.php ```php if ($_SERVER['APPLICATION_ENV'] === 'development') { error_reporting(E_ALL); ini_set("display_errors", 1); } ```