Skip to content

Instantly share code, notes, and snippets.

@jordanmaslyn
Created June 1, 2012 21:02
Show Gist options
  • Save jordanmaslyn/2855137 to your computer and use it in GitHub Desktop.
Save jordanmaslyn/2855137 to your computer and use it in GitHub Desktop.
CodeIgniter: New Controller
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Controllername extends CI_Controller {
public function __construct()
{
parent::__construct();
// Your own constructor code
}
public function index()
{
}
}
/* End of file Controllername.php */
/* Location: ./application/controllers/Controllername.php */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment