• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Forms not showing!

#1
[eluser]Unknown[/eluser]
Hello,
I'm new to CodeIgniter and i'm haveing a problem with the form. So first of all I loaded the form helper in config/autload.php
Code:
$autoload['helper'] = array('form');

I created a controller called auth.php in "controllers" folder
Code:
<?php
  class Auth extends CI_Controller
  {
      function login()
      {    
          $this->load->view('auth/login');
      }
  }
?>

and created a file named "login.php" that I placed in a folder named "auth" inside "view" folder
Code:
<?=form_open()?>


eMail: <?=form_input('email', set_value('email'))?>
        

Password: <?=form_password('password')?>


<?=form_submit('submit', 'Login')?>
<?=form_close();?>

but when I go to http://localhost/index.php/auth/login the only thing I see is the text without the forms.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.