Skip to content

Instantly share code, notes, and snippets.

@walesmd
Created April 23, 2010 13:49
Show Gist options
  • Select an option

  • Save walesmd/376555 to your computer and use it in GitHub Desktop.

Select an option

Save walesmd/376555 to your computer and use it in GitHub Desktop.
<?php if (!defined('BASEPATH')) exit('No direct script access allowed.');
class Users extends Controller() {
public function __construct() {
parent::__construct();
}
public function view($username) {
$this->load->model('user');
$data['user'] = $this->user->get($username) or show_404();
$this->load->view('user_info', $data);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment