English 中文(简体)
Install SonataNewsBundle
原标题:Install SonataNewsBundle

我学习SonataAdminBundle。 我发现:

rel=“nofollow”http://sonata-project.org/bundles/news/2-0/doc/vis/installation.html

but this haven t first point. i found:

[SonataAdminBundle]
    git=http://github.com/sonata-project/SonataAdminBundle.git
    target=/bundles/Sonata/AdminBundle

[SonataBlockBundle]
    git=http://github.com/sonata-project/SonataBlockBundle.git
    target=/bundles/Sonata/BlockBundle

[SonataCacheBundle]
    git=http://github.com/sonata-project/SonataCacheBundle.git
    target=/bundles/Sonata/CacheBundle

[SonatajQueryBundle]
    git=http://github.com/sonata-project/SonatajQueryBundle.git
    target=/bundles/Sonata/jQueryBundle

[SonataDoctrineORMAdminBundle]
    git=http://github.com/sonata-project/SonataDoctrineORMAdminBundle.git
    target=/bundles/Sonata/DoctrineORMAdminBundle

[KnpMenuBundle]
    git=http://github.com/KnpLabs/KnpMenuBundle.git
    target=/bundles/Knp/Bundle/MenuBundle

[KnpMenu]
    git=http://github.com/KnpLabs/KnpMenu.git
    target=/knp/menu

[Exporter]
    git=http://github.com/sonata-project/exporter.git
    target=/exporter

[SonataNewsBundle]
    git=http://github.com/sonata-project/SonataNewsBundle.git
    target=/bundles/Sonata/NewsBundle

页: 1 bin/install vendors. . Install is correct. Id added line to AppKernel and autoload, and if i run:

php app/console sonata:easy-extends:generate SonataNewsBundle

i 存在错误:

[InvalidArgumentException]
Bundle "ApplicationSonataNewsBundle" does not exist or it is not enabled.

i 加入:

new ApplicationSonataNewsBundleApplicationSonataNewsBundle(),

页: 1

php app/console sonata:easy-extends:generate SonataNewsBundle

then i 存在错误:

PHP Fatal error: Class ApplicationSonataNewsBundleApplicationSonataNewsBundle not found in /home/lanox06/Projects/sym2/app/AppKernel.php on line 29

如何做到这一点? 我希望测试这些申请。

最佳回答

You should move the ./app/Application folder from ./app to the ./src directory.

问题回答

另一种解决办法是,增加以下选择:

php app/console sonata:easy-extends:generate --dest=src SonataNewsBundle




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签