Welcome Guest, Not a member yet? Register   Sign In
trouble shooting
#4

[eluser]LuckyFella73[/eluser]
I didn'd have a look at your model and view file but
your controller should more look like that:

Code:
<?php  
class AccessDatabase extends Controller
{
    function AccessDatabase()
    {
        parent::Controller();
        $this->load->database();
        $this->load->model('AccessDatabase_model', 'AccessDatabase_model', true);
    }

    function index()
    {
        $data['result'] = $this->AccessDatabse_model->getData();
        $data['page_title'] = 'CI Hello World App!';
        $this->load->view('AccessDatabase_view',$data);
    }
}
?>

Please use the "code" tags when posting - it makes your code more readable.


Messages In This Thread
trouble shooting - by El Forum - 08-31-2009, 01:21 AM
trouble shooting - by El Forum - 08-31-2009, 01:34 AM
trouble shooting - by El Forum - 08-31-2009, 01:50 AM
trouble shooting - by El Forum - 08-31-2009, 01:59 AM
trouble shooting - by El Forum - 08-31-2009, 02:10 AM
trouble shooting - by El Forum - 08-31-2009, 02:11 AM
trouble shooting - by El Forum - 08-31-2009, 02:14 AM
trouble shooting - by El Forum - 08-31-2009, 03:22 AM
trouble shooting - by El Forum - 08-31-2009, 03:31 AM
trouble shooting - by El Forum - 08-31-2009, 03:41 AM
trouble shooting - by El Forum - 08-31-2009, 03:52 AM
trouble shooting - by El Forum - 08-31-2009, 05:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB