如何配置 Fuelphp?
我正在学习Fuel php。我不知道如何配置 Fuelphp。我是从 Fuelphp.com 下载的。我参考了很多教程,但我仍然对此感到困惑。我从公共文件夹复制了index.php和.htaccess文件并更改了APPPATH
,PKGPATH
,COREPATH
的路径
但我收到警告:Warning:require (bootstrap.php)
请帮助我......
I am learning Fuel php. I don't know how to configure Fuelphp. I downloaded it from Fuelphp.com. And I refer lot's of tutorial but still I am confuse about it. I copied index.php and .htaccess file from public folder and change path of APPPATH
, PKGPATH
, COREPATH
But I got warning :Warning: require(bootstrap.php)
Please help me......
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的第一个错误似乎是编辑常量。您不需要这样做,除非您正在自定义文件夹结构,并且如果您是使用该框架的新手,那么这可能不是一个好主意。
让我们来剖析一下:
这是你的应用程序的根。在这里你应该看到“核心”和“应用程序”。相反,您有:
您已复制燃料文件夹并将核心放入其中?这是故意的吗?
我会从一份干净的副本开始。什么也不做,只需加载
看看会发生什么。您可能会看到欢迎页面。
Your first mistake seems to have been editing the constants. You don't need to do that unless you are customizing the folder structure and if you are brand new to using the framework that's probably not a good idea.
Let's disect this:
This is the root of your app. Inside here you should see "core" and "app". Instead you have:
You have replicated the fuel folder and put core inside it? Was this intentional?
I'd start with a clean copy. Do nothing to it at all, just load up
See what happens. You'll probably see the welcome page.
仔细检查 APPPATH、PKGPATH、COREPATH 设置,可能是错误的。
Doublecheck the APPPATH, PKGPATH, COREPATH settings, probably the are wrong.