[eluser]stevefink[/eluser]
Hi all,
I just realized I"m working on a simple application where I'm completely breaking the MVC convention. I keep doing everything using just controller/view, but lack models. I'm certain my views are okay as they're all just markup and have a few foreach clauses using very light PHP. Can anyone take a look at this controller class and tell me if any of it belongs in the model according to good practices?
---
<?php
class Meduser extends Controller {
// db resource handlers
private $db_users;
private $db_notes;
function Meduser()
{
parent::Controller();
$this->db_users = $this->load->database('medusers', TRUE);
$this->db_notes = $this->load->database('mednotes', TRUE);
}
function index()
{
// load view.
$this->load->view('default/meduser_view');
}
function check_pending_users()
{
// retrieve all records.
$data['query'] = $this->db_users->query('select * from tbl_signups
where hostname = \'\''
);
// view for pending users container div.
$this->load->view('default/meduser_pu_view', $data);
}
}
?>
--
Thank you kindly.