This topic contains 2 replies, has 2 voices, and was last updated by thinh2010 7 years, 7 months ago.
- Topic
Hello,
I am trying to extends UserController. I already extends the bundle, and then I go to extend User controller, but it not work
This is my code:
12345678910111213<?phpnamespace Phs\Bundle\UserBundle;use Symfony\Component\HttpKernel\Bundle\Bundle;class PhsUserBundle extends Bundle{public function getParent(){return 'OroUserBundle';}}1234oro_user_bundle:resource: "@!OroUserBundle/Controller"type: annotationprefix: /user123456789101112131415161718192021222324<?phpnamespace Phs\Bundle\UserBundle\Controller;use Oro\Bundle\UserBundle\Entity\User;use Oro\Bundle\UserBundle\Controller\UserController as BaseController;/*** @Route("/user")*/class UserController extends BaseController{/*** @param User $entity** @return RedirectResponse|array*/protected function update(User $entity){die('345234567');}}but when I go to add new user, it not through my die function.
Maybe I have mistake somewhere but I cannot find it out. Could you please help me?
Thanks,
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.