如何访问“应用程序”在 cakePHP 中通过浏览器(localhost)创建文件夹?

发布于 2024-11-09 09:32:09 字数 795 浏览 0 评论 0原文

我正在使用 Apache 服务器。通常,当我想启动一个新的网站项目时,我会在服务器目录中创建一个新文件夹,并在该文件夹中包含“index.html 或index.php”。当我将本地主机 URL 定向到该文件夹​​时,它会打开它并自动显示 index.php。

现在我正在尝试使用 CakePHP 框架进行一些新的尝试。我完成了设置,当我将本地主机 URL 定向到文件夹“cakephp-cakephp”(包含所有 cakePHP 文件的文件夹)时,它会向我显示以下消息:

Release Notes for CakePHP 2.0.0-dev.

Your tmp directory is writable.

The FileEngine is being used for caching. To change the config edit APP/config/core.php

Your database configuration file is present. 

我认为下一步是通过保存所有内容来开始开发我的文件到“app”文件夹。但即使我从文件夹“cakephp-cakephp”中删除了默认的index.php 文件,该消息也没有消失。无论如何,index.php 文件实际上并没有生成该消息。

有谁知道哪个文件生成该发行说明消息?我想删除该文件,这样当我访问文件夹“cakephp-cakephp”时,我就不会收到消息(我相信这是由某些默认文件(如“index.php”)触发的),然后它会向我显示其中的文件目录相反,我可以使用浏览器轻松遍历文件目录并访问我的应用程序文件夹,我计划在其中存储我的 index.php 文件,并保存我的所有开发文件。

I am using Apache server. Usually when I want to start a new website project, I created a new folder inside my server directory and inside that folder I would have 'index.html or index.php'. When I direct my localhost URL to that folder, it would open it and automatically display index.php.

Now I am trying something new with this CakePHP framework. I finished setting it up, and when I direct my localhost URL to folder 'cakephp-cakephp' (folder containing all the cakePHP files), it then shows me this message:

Release Notes for CakePHP 2.0.0-dev.

Your tmp directory is writable.

The FileEngine is being used for caching. To change the config edit APP/config/core.php

Your database configuration file is present. 

I think the next step here is to start the development by saving all my files to "app" folder. But the message is not gone even when I deleted the default index.php files from inside the folder 'cakephp-cakephp'. It seems anyway, the index.php files do not actually generate the message.

Does anybody know what file generates that release notes message? I want to delete that file so that I wont get the message (which I believe is triggered by some default file like 'index.php') when I access folder 'cakephp-cakephp', and then it will show me the file directory inside that folder instead, and I can traverse file directory easily using my browser and access my app folder, in which I am planning to store my index.php file, and save all my development files..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人间不值得 2024-11-16 09:32:09

您无法删除index.php 文件,并且通常不会修改这些文件,除非您需要进行一些特殊配置。添加文件 app/views/pages/home.ctp 会消除该消息并成为您的默认主页。

另外,正如评论中所述,您应该真正阅读手册并尝试教程。
http://book.cakephp.org

You cannot delete the index.php files and you usually don't modify those files unless you need to do some special configuration. Adding the file app/views/pages/home.ctp gets rid of that message and becomes your default home page.

Also, as stated in the comments, you should really read the manual and try the tutorial.
http://book.cakephp.org

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文