# 创建一个空白项目

现在我们已经安装好了Symfony安装程序，让我们继续创建一个新的空白项目。我们只需执行`symfony new test-app`命令，如下图所示：

![](/files/-MPnBY-egWsjujMlEw5o)

这里，我们正在创建一个新的项目，名为`test-app`。我们可以看到Symfony安装程序正在从互联网上下载最新的Symfony框架，同时输出一个简短的说明，告诉我们如何通过Symfony控制台应用程序运行内置的PHP服务器。整个过程可能需要几分钟的时间。

新建的`test-app`目录的结构如下：

![](/files/-MPnBh7RQVSyl_rUYXR3)

这里为我们创建了许多文件和目录。然而，我们的兴趣集中在`app`和`src`目录上。`app`目录是网站范围内的应用程序配置所在的地方，我们可以在这里找到数据库、路由、安全和其他服务的配置。同时，这里也是默认布局和模板文件的所在，如下截图所示：

![](/files/-MPnC-GjKCqET-NdF65Z)

另一方面，`src`目录包含了已经模块化的基础`AppBundle`模块代码，如下截图：

![](/files/-MPnC8nmshiJXHo_dNcy)

我们将在后面的学习过程中详细讨论这些文件的作用。现在，将我们的浏览器指向这个项目将使`DefaultController.php`成为实际渲染输出的文件。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ganymedenil.gitbook.io/php-7/mo-kuai-san/symfony-gai-shu/chuang-jian-yi-ge-kong-bai-xiang-mu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
