Created
August 2, 2017 06:18
-
-
Save m0veax/5e65a044720c92effff76e649685be30 to your computer and use it in GitHub Desktop.
Codeigniter Parent Controller with "X-Clacks-Overhead: GNU Terry Pratchett" Header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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