Welcome Guest, Not a member yet? Register   Sign In
problems with Database Forge class
#2

[eluser]chejnik[/eluser]
Hello again,
I am suprised but it is solved now. To access Database Forge class one has to load Database Utility class instead.

Code:
function create_DB()
        {
        $this->load->dbutil();
    $dbs = $this->dbutil->list_databases();

    foreach($dbs as $db)
    {
        echo $db;
    }    
    
    if ($this->dbforge->create_database('my_db'))
        {
       echo 'Database created!';
       }
       }
Both functions works, one on dbutil, the second on dbforge class, interesting.


In log file
DEBUG - 2008-02-20 20:24:10 --> Creation model started
DEBUG - 2008-02-20 20:24:10 --> Database Forge Class Initialized
DEBUG - 2008-02-20 20:24:10 --> Database Utility Class Initialized
DEBUG - 2008-02-20 20:24:10 --> Create Database started

Is it kind of bug or it is common behaviour of Database Forge class?
Thanks Ales


Messages In This Thread
problems with Database Forge class - by El Forum - 02-20-2008, 09:58 AM
problems with Database Forge class - by El Forum - 02-20-2008, 01:28 PM
problems with Database Forge class - by El Forum - 02-23-2008, 03:56 AM
problems with Database Forge class - by El Forum - 02-23-2008, 05:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB