我试图让我的网站生活,但不断得到相同的错误...我试过寻找无处不在,使用每个人的解决方案,没有运气。ClassNotFoundException Symfony
错误
ClassNotFoundException的:试图在/home/dcms/public/html/dcms/apha/app/AppKernel.php线19来装载类 “DestinationAppBundle” 从命名空间 “目的地\的appbundle”你需要从另一个命名空间“使用”它吗?
AppKernel.php
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new Destination\AppBundle\DestinationAppBundle(),
new Destination\Auth\HashInterfaceBundle\DestinationHashInterfaceBundle(),
);
文件结构
src
Destination
AppBundle
任何想法?
您使用APC吗?尝试冲洗它。 –
你会如何做到这一点在PHP? – Brent
确保你在实时主机中有'DestinationAppBundle.php'。如果locale工作意味着您的项目没有正确上传,请使用rsync确保所有内容都是同步的(如果您可以使用rsync)。 –