Welcome Guest, Not a member yet? Register   Sign In
Tutorial 2 mssql connection issues
#1

[eluser]Unknown[/eluser]
I am really new at PHP and Codeigniter and folloing tutorial 1 really interested me in this framework.
However we use MS SQL server and the tutorial 2 eample just produced a empty page on the first connection test.
I realise that the autoload instructions in the movie have been superseeded:
$autoload['libraries'] = array('aatabase'); rather than
$autoload['core'] = array("database); //

Does it matter that in my system there is no "database" in the libraries folder but rather an entire directory at the library folder level?

Is there an issue in using an IP address for the connection?

Noob question: Is there a way to get more information on what is happening rather than just a blank screen?

I really want this to work.

thanks

tladb
#2

[eluser]imzyos[/eluser]
the scaffolding and database are separated from the main libraries, why, i dont know, may be..

Scaffolding its not necessary and supose an risk more than advantage, ONLY USE IT ON DEVELOP TIME.
and database require many files, and it looks terrible on libraries folder, or maybe, when PHP5 arrives vy gophp5, Rick will write a new database based on PDO.

to load the databse librari use this line

Code:
$this->load->database();

but if you add it to autoload file, you don need load it, you can use it
#3

[eluser]Unknown[/eluser]
I don't even get to the scaffolding part. The initial test done with the previous tutorial's data shows a blank screen as does my tests with the specific line :
Code:
$this->load->database();
#4

[eluser]imzyos[/eluser]
the screencast are very old, check the user guide, the better way to learn.




Theme © iAndrew 2016 - Forum software by © MyBB