public function view($id = NULL) { // If no id is passed then show catalog $ticket = Tickets::factory('bannerdupes'); // Load the ticket view $view = new View('bannerdupes'); $view->action = 'view'; $view->good_id = $this->good_id; $view->bad_id = $this->bad_id; $view->comment = $this->comment; //TODO: Find a way to hook modules into the view // Load the discussion module $discussion = Ticket_Modules::factory('discussion'); $discussion->view('view', &$view); // Load the ticketphase module $phase = Ticket_Modules::factory('phaseset'); $phase->view('view', &$view); $view->render(); }