我正在使用symfony2,我在我的app \ AppKernel.php中有流畅的代码行
public function registerBundles()
{
$bundles = array(
new Knp\Bundle\SnappyBundle\KnpSnappyBundle(),
new FOS\UserBundle\FOSUserBundle(),
new FOS\RestBundle\FOSRestBundle(),
new FOS\CommentBundle\FOSCommentBundle()
);
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}
return $bundles;
}
我在第4行遇到了"FatalErrorException: Error: Class 'Knp\Bundle\SnappyBundle\KnpSnappyBundle' not found in E:\xampp\htdocs\humanfactor\app\AppKernel.php line 4"
我还在vendor
来自https://github.com/KnpLabs/KnpSnappyBundle的Vendor
- KnpSnappyBundle
目录中放了一个快活的lib,但我仍然收到此错误。
KnpSnappyBundle结构
{{1}}
由于