Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Database: When use database library, page is not visible
#11

[eluser]jvicab[/eluser]
weird. try to autoload another library instead of database, like session, or load it right in the controller, like $this->load->library('database');
#12

[eluser]Lorin[/eluser]
I tried to load library 'session'. After reload page, I got error:

Code:
In order to use the Session class you are required to set an encryption key in your config file.

So I have to set:

Code:
$config['encryption_key'] = "YOUR KEY";

to run it without errors. But (if you don't count error) it run normally (no blank page), unlike 'database' library.

After $this->load->library('database'); i got error:
Code:
Unable to load the requested class: database
Did you mean $this->load->database();? It give blank page.
#13

[eluser]Lorin[/eluser]
I beg your pardon. It was problem in my PHP. I didn't have install MySQL module for PHP. After install, everything is ok.

Big thanks for your time and help. I'm realy sorry.

L.
#14

[eluser]jvicab[/eluser]
no problem, good luck
#15

[eluser]Lorin[/eluser]
Thanks Wink.




Theme © iAndrew 2016 - Forum software by © MyBB