Created
March 26, 2010 00:32
-
-
Save raws/344320 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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