Skip to content

Instantly share code, notes, and snippets.

@tekkub
Forked from walesmd/gist:55497
Created January 31, 2009 20:44
Show Gist options
  • Save tekkub/55655 to your computer and use it in GitHub Desktop.
Save tekkub/55655 to your computer and use it in GitHub Desktop.
class Users extends Controller {
function Users() {
parent::Controller();
$this->load->model('user');
}
function profile($username = FALSE) {
$data['user'] = $this->user->get($username);
$this->load->view('users/profile', $data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment