Welcome Guest, Not a member yet? Register   Sign In
cannot load model in CI 1.72 using modular extention
#11

[eluser]didit[/eluser]
no, i don't

because actually i dont know how to enable / set 'autoloading' database,
i dont change anything in the system except for db connection for Mysql above
#12

[eluser]flaky[/eluser]
in the same folder where database.php is placed, there is autoload.php
find this part and modify it this.
Code:
/*
| -------------------------------------------------------------------
|  Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in the system/libraries folder
| or in your system/application/libraries folder.
|
| Prototype:
|
|    $autoload['libraries'] = array('database', 'session', 'xmlrpc');
*/

$autoload['libraries'] = array('database');

then remove
Code:
$this->load->database();
from the constructor
#13

[eluser]didit[/eluser]
wow it's work!

thanks a lot flaky Big Grin,
#14

[eluser]flaky[/eluser]
no problem
glad I could help :-)




Theme © iAndrew 2016 - Forum software by © MyBB