Created
April 23, 2010 13:49
-
-
Save walesmd/376555 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 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