dosi8657 2012-12-08 00:44
浏览 50
已采纳

PHP致命错误:找不到类

I am getting Class 'Splash\\SiteBundle\\Util\\Resize' not found when running my app on prod. This does not happen on dev.

Here is the code from the error:

$resize = new \Splash\SiteBundle\Util\Resize($this->getAbsolutePath());

I have a file called Splash\SiteBundle\Util\Resize.php with this namespace

namespace Splash\SiteBundle\Util;

Class Resize{  ... }

Any thoughts?

  • 写回答

3条回答 默认 最新

  • duandai2178 2012-12-08 20:43
    关注

    I love when its the little things. My util folder was not capitalized. I changed this and it works now. I'm surprised my dev machine did not fail w this error.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?