[eluser]therealmaloy[/eluser]
wild, controller should be like this with your coding approach:
<?php
class Blahg extends Controller {
function Blahg() {
parent::Controller();
}
function index() {
$data['page_title'] = WEBSITE_TITLE.' | Blahg List';
$this->load->model('Posts_model','posts');
if($this->posts)
echo "Success";
else
echo "Failure";
$data['posts'] = $this->posts->get_posts(10);
$this->load->view('blahg_view', $data);
}
}
?>