CodeIgniter Forums
Nothing output to my Webbrowser? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Nothing output to my Webbrowser? (/showthread.php?tid=48925)



Nothing output to my Webbrowser? - El Forum - 02-02-2012

[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’);
}
}


Nothing output to my Webbrowser? - El Forum - 02-02-2012

[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!



Nothing output to my Webbrowser? - El Forum - 02-02-2012

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


Nothing output to my Webbrowser? - El Forum - 02-02-2012

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