Re: cakephp3 : implementing auth using custom controller and model

2015-08-04 Thread Rafael Queiroz
Try loadComponent in initialize instead of $components attribute. On Mon, Aug 3, 2015 at 6:33 AM, ItsAvinash wrote: > I was trying to implement auth in a plugin that I created. > > Lets suppose there is a controller name Team, in which there are few > functions like login() logout() index() apar

cakephp3 : implementing auth using custom controller and model

2015-08-03 Thread ItsAvinash
I was trying to implement auth in a plugin that I created. Lets suppose there is a controller name Team, in which there are few functions like login() logout() index() apart from other crud functions. Following is the sample code of team controller namespace Team\Controller; use Team\C