CAKEPHP 2.7-更改的服务器 - 问题查找课程
将一个旧的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论