This should be simple but I've spent over an hour trying to figure it out so thanks for your help.
I've got a CakePHP plugin, Usermgmt
, with a controller located here:
./app/Plugin/Usermgmt/Controller/UsersController.php
I'm trying to call a function, userIdFromUsernameAndPassword()
, in that controller from one of my main controllers using something like:
$userID = $this->UsersController->userIdFromUsernameAndPassword( 'user@host.com','pass' );
What do I need to import/include/initialize to be able to get this working?
I've tried various import statements such as App::uses('UsersController', 'Usermgmt.Controller');
at the top of my file, but haven't gotten anywhere.
Thanks!