Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Somthing wrong with controller #49

Closed
korjavin opened this issue Feb 24, 2011 · 4 comments
Closed

Somthing wrong with controller #49

korjavin opened this issue Feb 24, 2011 · 4 comments

Comments

@korjavin
Copy link

I have a bundle:

autoload:
'APM' => DIR.'/../src',

appkernel:
new APM\TestDesignBundle\APMTestDesignBundle(),

creating Admin class, and write this in config.yml:

sonata_base_application:
entities:
post:
label: Test
group: test
class: APM\TestDesignBundle\Admin\TestAdmin
entity: APM\TestDesignBundle\Entity\Test
controller: TestDesignBundle:TestAdmin

after that i see dashboard with links list/add
but have an error when click on list

generated url: .../app_dev.php/admin/apm/testdesign/test/list

error:
ERR InvalidArgumentException: Bundle "TestDesignBundle" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() function of your AppKernel.php file? (uncaught exception)

i am trying in config.yml all combinations
controller: APM\TestDesignBundle:TestAdmin
controller: APMTestDesignBundle:TestAdmin
and so on - doesnt work.

What i miss?

@rande
Copy link
Member

rande commented Feb 24, 2011

APMTestDesignBundle:TestAdmin is the correct name, have you check your namespace declaration inside the TestAdminController file ?

@korjavin
Copy link
Author

in Admin/TestAdmin.php

namespace APM\TestDesignBundle\Admin;

@korjavin
Copy link
Author

files
$find src/APM

APM
APM/TestDesignBundle
APM/TestDesignBundle/Admin
APM/TestDesignBundle/Admin/TestAdmin.php
APM/TestDesignBundle/Entity
APM/TestDesignBundle/Entity/Test.php
APM/TestDesignBundle/Resources
APM/TestDesignBundle/Resources/config
APM/TestDesignBundle/Resources/config/routing.yml
APM/TestDesignBundle/Resources/views
APM/TestDesignBundle/Resources/views/.symfony
APM/TestDesignBundle/Resources/views/layout.html.twig
APM/TestDesignBundle/Resources/views/Default
APM/TestDesignBundle/Resources/views/Default/index.html.twig
APM/TestDesignBundle/Controller
APM/TestDesignBundle/Controller/.symfony
APM/TestDesignBundle/Controller/DefaultController.php
APM/TestDesignBundle/APMTestDesignBundle.php
APM/TestDesignBundle/Tests
APM/TestDesignBundle/Tests/DefaultControllerTest.php

@korjavin
Copy link
Author

oh, oh

TestAdminController , i miss controller at all.

i am sry

ft-1408 pushed a commit to intexsys/SonataAdminBundle that referenced this issue Sep 17, 2021
…-user

Update impersonating list template
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants