/** * Prints documentation for current controller. * API controller methods are required to return * JSON data but in this case HTML is required. */ public function help() { $this->response->setFormat('html'); parent::help(); }
/** * Prints documentation for current controller. * API controller methods are required to return * JSON data but in this case HTML is required. */ public function help() { if ($this->request->getVal('format') != 'json') { $this->response->setFormat('html'); } parent::help(); }