Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/11/2014, 08:48
Avatar de yosandry91
yosandry91
 
Fecha de Ingreso: diciembre-2013
Mensajes: 34
Antigüedad: 10 años, 11 meses
Puntos: 0
Problema con sonata

Bueno este es mi problema y discurpen sy es mui tedioso es que ya lo prove todo .Yo ya instale y comfigure los sigientes bundles
new Sonata\CoreBundle\SonataCoreBundle(),
new Sonata\BlockBundle\SonataBlockBundle(),
new Sonata\jQueryBundle\SonatajQueryBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdm inBundle(),
new Sonata\AdminBundle\SonataAdminBundle(),
new FOS\UserBundle\FOSUserBundle(),
new Sonata\UserBundle\SonataUserBundle('FOSUserBundle' ),
new Sonata\EasyExtendsBundle\SonataEasyExtendsBundle() ,
new Sonata\CacheBundle\SonataCacheBundle(),
new Sonata\IntlBundle\SonataIntlBundle(),
new Sonata\MarkItUpBundle\SonataMarkItUpBundle(),
new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(),
new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
new Sonata\FormatterBundle\SonataFormatterBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new JMS\AopBundle\JMSAopBundle(),
new JMS\DiExtraBundle\JMSDiExtraBundle($this),
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
new FOS\JsRoutingBundle\FOSJsRoutingBundle(),

Pero al acceder a la uri / admin me da el sigiente palo
InvalidArgumentException: Doctrine ORM Manager named "" does not exist.
la configuracion que use fue esta
<code>
fos_user:
db_driver: orm # can be orm or odm
firewall_name: main
user_class: Sonata\UserBundle\Entity\BaseUser

group:
group_class: Sonata\UserBundle\Entity\BaseGroup
group_manager: sonata.user.orm.group_manager

service:
user_manager: sonata.user.orm.user_manager

profile:
# Authentication Form
form:
type: fos_user_profile
handler: fos_user.profile.form.handler.default
name: fos_user_profile_form
validation_groups: [Authentication]
sonata_admin:
security:
handler: sonata.admin.security.handler.role
title: Sistema X
title_logo: /bundles/applicationcore/images/escudo.png
templates:
# default global templates
layout: SonataAdminBundle::standard_layout.html.twig
ajax: SonataAdminBundle::ajax_layout.html.twig

# default actions templates, should extend a global templates
list: SonataAdminBundle:CRUD:list.html.twig
show: SonataAdminBundle:CRUD:show.html.twig
edit: SonataAdminBundle:CRUD:edit.html.twig

dashboard: SonataAdminBundle:Core:dashboard.html.twig

dashboard:
blocks:
# display a dashboard block
- { position: left, type: sonata.admin.block.admin_list }
sonata_block:
default_contexts: [cms]
blocks:
# Enable the SonataAdminBundle block
sonata.admin.block.admin_list:
contexts: [admin]

#sonata.admin_doctrine_orm.block.audit:
# contexts: [admin]
sonata.user.block.menu: # used to display the menu in profile pages
sonata.user.block.account: # used to display menu option (login option)
sonata.block.service.text:
sonata.block.service.rss:
sonata_cache:
caches:
apc:
token: s3cur3 # token used to clear the related cache
prefix: test # prefix to ensure there is no clash between instances
servers:
- { domain: kooqit.local, ip: 127.0.0.1, port: 80 }
sonata_core: ~
sonata_formatter:
formatters:
markdown:
service: sonata.formatter.text.markdown
extensions:
- sonata.formatter.twig.control_flow
- sonata.formatter.twig.gist
#- sonata.media.formatter.twig

text:
service: sonata.formatter.text.text
extensions:
- sonata.formatter.twig.control_flow
- sonata.formatter.twig.gist
#- sonata.media.formatter.twig

rawhtml:
service: sonata.formatter.text.raw
extensions:
- sonata.formatter.twig.control_flow
- sonata.formatter.twig.gist
#- sonata.media.formatter.twig

richhtml:
service: sonata.formatter.text.raw
extensions:
- sonata.formatter.twig.control_flow
- sonata.formatter.twig.gist
#- sonata.media.formatter.twig

twig:
service: sonata.formatter.text.twigengine
extensions: [] # Twig formatter cannot have extensions

sonata_user.yml

sonata_user:
security_acl: false
class:
user: Application\Sonata\UserBundle\Entity\User
group: Application\Sonata\UserBundle\Entity\Group

profile: # Profile Form (firstname, lastname, etc ...)
form:
type: sonata_user_profile
handler: sonata.user.profile.form.handler.default
name: sonata_user_profile_form
validation_groups: [Profile]



twig:
# code...
form:
resources:
- 'SonataFormatterBundle:Form:formatter.html.twig'



# Doctrine Configuration
doctrine:
dbal:
# code...
types:
json: Sonata\Doctrine\Types\JsonType
# code...

# Knp MenuBundle
knp_menu:
twig: # use "twig: false" to disable the Twig extension and the TwigRenderer
template: knp_menu.html.twig
templating: false # if true, enables the helper for PHP templates
default_renderer: twig # The renderer to use, list is also available by defaul
</code>

Última edición por yosandry91; 06/11/2014 a las 08:54