Welcome Guest, Not a member yet? Register   Sign In
Database Forge Issue
#3

[eluser]GamingFusion[/eluser]
I updated my code but im still getting the same error.

Model: installDB
Code:
<?php

class InstallDB extends Model {
    
    function installDB()
    {
        parent::Model();
    }
    
    function createTables()
    {
        $this->dbforge->create_table('users', TRUE);
        
        $fields = array(
                        'id' => array('type' => 'int')
);
$this->dbforge->add_column('users', $fields);
        
        //$this->dbforge->create_table('details', TRUE);
    
    }
    
    function insertdetails()
    {
        
    }
    
}

?>

Controller: install
Code:
<?php

class Install extends Controller
{
    function install() {
        
        parent::Controller();
        $this->load->model('installDB');
        $this->load->dbforge();
        
    }

    function index()
    {
        $data['title'] = 'SkyePHP | Install SkyePHP';
        
        $this->installDB->createTables();
        
        $this->load->view('install_view', $data);
    }
    
    function sitedetails() {
            $this->installDB->insertdetails();
    }
    
    function step2() {
        
    }
    
    function step3() {
        
    }
    
}

?>


Messages In This Thread
Database Forge Issue - by El Forum - 10-30-2010, 09:59 AM
Database Forge Issue - by El Forum - 10-30-2010, 01:45 PM
Database Forge Issue - by El Forum - 10-30-2010, 10:21 PM
Database Forge Issue - by El Forum - 10-31-2010, 12:03 AM
Database Forge Issue - by El Forum - 10-31-2010, 10:29 AM
Database Forge Issue - by El Forum - 10-31-2010, 11:24 AM
Database Forge Issue - by El Forum - 10-31-2010, 11:35 PM
Database Forge Issue - by El Forum - 10-31-2010, 11:43 PM
Database Forge Issue - by El Forum - 11-01-2010, 09:33 AM
Database Forge Issue - by El Forum - 11-02-2010, 09:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB