git - (There is no extension able to load the configuration for "sonata_block" -
i finding error while generating admin panel in symfony 2.5. can 1 please tell me ? new symfony , unable it. error using git, when clear cache using, app/console cache:clear or thing else, same error in browser.
[symfony\component\config\exception\fileloaderloadexception] cannot import resource "d:\xampp\htdocs\myassignment\app/config\config.yml" "d:\xampp\htdocs\myassignment\app/config/config_dev.yml". (there n o extension able load configuration "sonata_block" (in d:\xampp\ htdocs\myassignment\app/config\config.yml). looked namespace "sonata_bl ock", found "framework", "security", "twig", "monolog", "swiftmailer", "ass etic", "doctrine", "sensio_framework_extra", "member", "sonata_admin", "son ata_doctrine_orm_admin", "acme_demo", "web_profiler", "sensio_distribution" ) [symfony\component\dependencyinjection\exception\invalidargumentexception] there no extension able load configuration "sonata_block" (in d:\xampp\htdocs\myassignment\app/config\config.yml). looked namespace "sonata_block", found "framework", "security", "twig", "monolog", "swiftmai ler", "assetic", "doctrine", "sensio_framework_extra", "member", "sonata_ad min", "sonata_doctrine_orm_admin", "acme_demo", "web_profiler", "sensio_dis tribution"
here code
imports: - { resource: parameters.yml } - { resource: security.yml } - { resource: @memberbundle/resources/config/admin.yml } framework: #esi: ~ #translator: { fallback: "%locale%" } secret: "%secret%" router: resource: "%kernel.root_dir%/config/routing.yml" strict_requirements: ~ form: ~ csrf_protection: ~ validation: { enable_annotations: true } templating: engines: ['twig'] #assets_version: someversionscheme default_locale: "%locale%" trusted_hosts: ~ trusted_proxies: ~ session: # handler_id set null utilize default session handler php.ini handler_id: ~ fragments: ~ http_method_override: true # twig configuration twig: debug: "%kernel.debug%" strict_variables: "%kernel.debug%" # assetic configuration assetic: debug: "%kernel.debug%" use_controller: false bundles: [ ] #java: /usr/bin/java filters: cssrewrite: ~ #closure: # jar: "%kernel.root_dir%/resources/java/compiler.jar" #yui_css: # jar: "%kernel.root_dir%/resources/java/yuicompressor-2.4.7.jar" # doctrine configuration doctrine: dbal: driver: "%database_driver%" host: "%database_host%" port: "%database_port%" dbname: "%database_name%" user: "%database_user%" password: "%database_password%" charset: utf8 # if using pdo_sqlite database driver, add together path in parameters.yml # e.g. database_path: "%kernel.root_dir%/data/data.db3" # path: "%database_path%" orm: auto_generate_proxy_classes: "%kernel.debug%" auto_mapping: true # swiftmailer configuration swiftmailer: transport: "%mailer_transport%" host: "%mailer_host%" username: "%mailer_user%" password: "%mailer_password%" spool: { type: memory } sonata_block: default_contexts: [cms] blocks: # enable sonataadminbundle block sonata.admin.block.admin_list: contexts: [admin] # other blocks
here kernel
you should register sonatablockbundle in appkernel.php
git symfony2
No comments:
Post a Comment