CAKEPHP 2.7-更改的服务器 - 问题查找课程

发布于 2025-01-27 04:29:06 字数 517 浏览 4 评论 0原文

将一个旧的CakePHP项目转移到了新服务器上以进行一些测试(我无法访问其原始服务器)。它是PHP 5.5上运行的Cakephp 2.7。该项目最初是使用梨构建的,我设法在经过很多不弃用的软件包问题之后安装了梨,但是无法运行build.xml,因为它需要一个被弃用的软件包,而且我找不到任何地方。修复了大部分路径&重定向问题。但是找不到任何课程;甚至没有应用程序,因为我不知道在哪里定义。它是由梨定义的吗?它似乎不在core.php或bootstrap.php或初始index.php中。或者如果是我找不到。

因此:

任何具有应用程序类的文件:

App::objects('Controller');

返回:

Fatal error: Class 'App' not found in D:\xampp\htdocs\projectname\cake\app\webroot\test.php on line 2

希望有人仍然知道Cakephp 2的知识!

Transferred an old CakePHP project to a new server to do some testing ( i don't have access to it's original server) . It's cakePHP 2.7 running on php 5.5. The project was originally built using PEAR, I've managed to install PEAR after a lot of issues with deprecated packages, but am unable to run the build.xml as it requires a package that is deprecated and I am unable to find anywhere. Fixed most of the path & redirect issues. But can't get it to find any Classes; not even App, as i have no idea where this is defined. Is it defined by PEAR? it doesn't seem to be in core.php or bootstrap.php or the initial index.php. Or if it is I can't find it.

so:

Any file that has App class for example:

App::objects('Controller');

returns:

Fatal error: Class 'App' not found in D:\xampp\htdocs\projectname\cake\app\webroot\test.php on line 2

hoping someone out there still has knowledge of cakePHP 2!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文