/** * */ public function popin() { $this->permission('Garden.SignIn.Allow'); // Fetch from model $Conversations = $this->ConversationModel->get2(Gdn::session()->UserID, 0, 5)->resultArray(); // Last message user data Gdn::userModel()->joinUsers($Conversations, array('LastInsertUserID')); $this->EventArguments['Conversations'] =& $Conversations; $this->fireEvent('beforeMessagesPopin'); // Join in the participants. $this->setData('Conversations', $Conversations); $this->render(); }