Welcome Guest, Not a member yet? Register   Sign In
Nothing output to my Webbrowser?
#1

[eluser]huaxz1986[/eluser]
I just insert a php sentence, and data configure is OK.However,nothing output in my Webbrowser.I checked err.log of MYSQL, no errors.I checked err.log of apache2 too,and no errors as well.

class Welcome extends CI_Controller {
public function index()
{
$this->load->database();
$this->load->view(‘welcome_message’);
}
}
#2

[eluser]InsiteFX[/eluser]
Take rem out the database line and see if it works!

If not then your editor is saving with the BOM!

You will need to setup your editor save unix line breaks and save witout BOM.

View the page source and see if you have funny characters at top!
#3

[eluser]huaxz1986[/eluser]
Thank you. I find it that I have not installed php-mysql extension yet.
When I install php-mysql , it works.
#4

[eluser]huaxz1986[/eluser]
Thank you. I find it that I have not installed php-mysql extension yet.
When I install php-mysql , it works.




Theme © iAndrew 2016 - Forum software by © MyBB