[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