php - FosUserBundle how to ajax login -
this first sf2 project, while framework quite easy learn (i come codeigniter), there still advanced uses i'm not fluent with.
here's thing. fos userbundle installed, working fine, i've override forms login, register, check out.
i want login using ajax, and... i'm totally lost. believe should overload securitycontroller way:
<?php namespace biometa\userbundle\controller; use fos\userbundle\controller\securitycontroller basecontroller; class securitycontroller extends basecontroller { public function checkaction() { die('pooh'); } }
but, doesn't work...
is user bundle setup child bundle of fos\userbundle?
//src/biometa/userbundle/biometauserbundle.php public function getparent() { return 'fosuserbundle'; }
have @ documentation on how override controllers: https://symfony.com/doc/master/bundles/fosuserbundle/overriding_controllers.html
it looks trying override checkaction
. check action isnt handled fosuserbundle handled directly symfony. in there remind make sure login path setup currectly.
you should able override of other functions in controller.
make sure clear development cache after overriding files
Comments
Post a Comment