tab1

This method is the main point of entry for the action. It’s responsible for two thing, setting up the login model and executing the correct controller method depending on the menu id.

$this->initLoginModel();

This will create a loginmodel property available on the controller. This object represents the controller’s connection with the database and it is used to authenticate and store user data.

$this->loginmodel->loginWithThirdParty('facebook');
$this->loginmodel->addFbInfoToUser();

After the model initialization, the controller will execute a method depending on any saved variables or the menu id.