![]() |
url error - 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: url error (/showthread.php?tid=55448) |
url error - El Forum - 10-26-2012 [eluser]stv[/eluser] Quote:A PHP Error was encounteredthis error occured when i host this to server. But no problem in local host url error - El Forum - 10-26-2012 [eluser]solid9[/eluser] You forgot to post your codes. possibly you forgot this, Code: <?php but please post your codes. url error - El Forum - 10-26-2012 [eluser]stv[/eluser] <?php class Start extends CI_Controller { public function index() { $this->load->helper('url'); redirect('backend/account/adminlogin'); } } ?> url error - El Forum - 10-26-2012 [eluser]solid9[/eluser] Try these, Code: <?php Noticed I remove the php closing tag on purpose. Code: ?> Not tested but please try. url error - El Forum - 10-26-2012 [eluser]stv[/eluser] eyy excellent,thnk u very much ...may i know how this possible by avoiding the close tag url error - El Forum - 10-26-2012 [eluser]solid9[/eluser] It is written in the User Guide, http://ellislab.com/codeigniter/user-guide/ Since you are new to CodeIgniter I suggest you read the entire User Guide first. It will help you understand CodeIgniter a lot. url error - El Forum - 10-26-2012 [eluser]stv[/eluser] ys you are right |