0
我实际上与我的网站有问题,当我想要在实时模式下它。我有这样的错误:我的网站does not在现场模式下工作
Fatal error: Class 'Lexik\Bundle\TranslationBundle\LexikTranslationBundle' not found in /home/maisonka/www/app/AppKernel.php on line 27
,但我不明白,因为我的包lexik是我的供应商和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 Kayser\PlatformBundle\KayserPlatformBundle(),
new Liip\ImagineBundle\LiipImagineBundle(),
new Sonata\IntlBundle\SonataIntlBundle(),
new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
new Sonata\CoreBundle\SonataCoreBundle(),
new Sonata\BlockBundle\SonataBlockBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Sonata\AdminBundle\SonataAdminBundle(),
new Lexik\Bundle\TranslationBundle\LexikTranslationBundle(),
);
你尝试'php应用程序/控制台清除:缓存--env = prod'? –
我不能因为我使用filzila,我不能删除应用程序/缓存 –
为什么不能?只需删除它们,symfony 2将创建一个新的缓存 –