/** * Create the new question method on post controller. * * @param PostController $sender Sending controller instance. */ public function postController_question_create($sender, $CategoryUrlCode = '') { // Create & call PostController->Discussion() $sender->View = PATH_PLUGINS . '/QnA/views/post.php'; $sender->setData('Type', 'Question'); $sender->discussion($CategoryUrlCode); }