Skip to content

Instantly share code, notes, and snippets.

@raws
Created March 26, 2010 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raws/344320 to your computer and use it in GitHub Desktop.
Save raws/344320 to your computer and use it in GitHub Desktop.
<?php
class Wiki extends Controller {
function Welcome()
{
parent::Controller();
}
function _remap($method)
{
if (method_exists($this, $method)) {
$this->{$method}();
} else {
$this->view();
}
}
function index()
{
$this->load->view("wiki/view");
}
function edit()
{
$this->load->view("wiki/edit");
}
function view()
{
$this->load->view("wiki/view");
}
}
/* End of file wiki.php */
/* Location: ./system/application/controllers/wiki.php */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment