Welcome Guest, Not a member yet? Register   Sign In
DB problem
#3

[eluser]pgsjoe[/eluser]
I was following the demo, making slight changes as I needed. Here's where I left off when I got the error:
Code:
<?php
class Releases extends Controller {
    
    function Releases()
    {
        parent::Controller();
        
        $this->load->scaffolding('pressReleases');
    }
    function index()
    {
        $data['title']        = "My Blog Title";
        $data['heading']    = "My Blog Heading";
        $data['query']        = $this->db->get('pressReleases');
        
        $this->load->view('pressReleases', $data);
    }
    
    function comments()
    {
        echo 'Look at this!';
    }
}
?>
And like I said, the scaffolding was working, so I know the table name and database connections are correct.


Messages In This Thread
DB problem - by El Forum - 01-27-2008, 02:11 PM
DB problem - by El Forum - 01-27-2008, 02:13 PM
DB problem - by El Forum - 01-27-2008, 02:48 PM
DB problem - by El Forum - 01-27-2008, 02:54 PM
DB problem - by El Forum - 01-27-2008, 03:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB