Skip to content

Instantly share code, notes, and snippets.

@m0veax
Created August 2, 2017 06:18
Show Gist options
  • Save m0veax/5e65a044720c92effff76e649685be30 to your computer and use it in GitHub Desktop.
Save m0veax/5e65a044720c92effff76e649685be30 to your computer and use it in GitHub Desktop.
Codeigniter Parent Controller with "X-Clacks-Overhead: GNU Terry Pratchett" Header
<?php
/**
* application/core/MY_Controller.php
*
* All application controllers should extend Base_Controller instead of CI_Controller
*/
class Base_Controller extends CI_Controller {
public function __construct() {
parent::__construct();
$this->output->set_header('X-Clacks-Overhead: GNU Terry Pratchett');
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment