duananyantan04633 2014-10-09 18:55
浏览 12
已采纳

无法让php在ubuntu上工作[关闭]

I recently created a server with a digital ocean and I have been trying to learn their commands and what not so I can create web servers. I have a project that I have uploaded, and when I visited that page, what was meant to show my project, displays as a blank webpage

I have located the problem to this file, see I have wrote a bunch of test 1, test 2 to find my problem because no errors are showing. Go to line 45 and you will see this, and then at line 111 where it is throwing an exception is where it halts.

https://bitbucket.org/benshepherd/ben-mvc/src/79041e868b85aeeacfefac23ce729a0c2a6b949f/Libs/Controller.php?at=master

you can see here http://178.62.26.90/mvc/ the results of what it is echoing out.

  • 写回答

1条回答 默认 最新

  • dongpo8250 2014-10-09 19:05
    关注

    Line 97: Either the model class needs to be called pagesModel or this line needs to change to be

    $class = ucfirst( $modelName ).'Model';
    

    Also line 94:

    $file = __DIR__.'/Models/'.$modelName.'.php';
    

    Should probably be:

    $file = __DIR__.'/../Models/'.$modelName.'.php';
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100