![]() |
Login page - 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: Login page (/showthread.php?tid=56711) |
Login page - El Forum - 01-13-2013 [eluser]vahidsamimi[/eluser] hi all i'm beginner in codeigneter. i want to create login page but i have problem and this is not work!. i use ver 2.1.3 when i click "login" button , it always shows, "the requested URL ../user/login was not found on this server. my user.php is : Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); my view_user.php Code: <div id="form_login" > my routes.php : Code: $route['default_controller'] = "user"; config.php : Code: $config['base_url'] = 'http://localhost/code'; Login page - El Forum - 01-13-2013 [eluser]InsiteFX[/eluser] Your missing the ending slash / on the end of your config base_url If you leave it blank '' CI will figure it out for you. Login page - El Forum - 01-13-2013 [eluser]vahidsamimi[/eluser] thanks InsiteFX but stil not work!!! ![]() Login page - El Forum - 01-13-2013 [eluser]InsiteFX[/eluser] When checking view code you need to place and exit after it or it will get over written. Code: public function login() Form_open should be like this: Code: <?php echo form_open('user/login'); ?> |