• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The form field dont appears

#1
[eluser]bibos[/eluser]
Hi,
I'm new with CodeIgniter, i start by doing a login form, i have a login_form.php file :

Code:
<?=form_open('base_url').'main/login'?>
    <div id="basic" class="myform">
        <h1>Title</h1>
        <p>Message</p>
        
        <label>Login
            <span class="small">Add your login</span>
        </label>
        &lt;?=form_input('UserLogin',set_value('UserLogin'))?&gt;  

        <label>Password
            <span class="small">Add your password</span>
        </label>
        &lt;?=form_password('UserPassword')?&gt;

        &lt;?=form_submit('','Login')?&gt;
    
        <div class="spacer"></div>
    </div>
&lt;?=form_close()?&gt;

and into my main.php controller i do :

Code:
?php

class Main extends Controller {

    function Main()
    {
        parent::Controller();    
    }
    
    function test()
    {
        echo 'je suis un teste Yass';
    }
        
    function index()
    {
        
        $this->load->view('main/login_form');
    }
}

i alsow do in my autoload.php :

Code:
...
$autoload['libraries'] = array('database','session','form_validation');
...

...
$autoload['helper'] = array('url','form');
...

But when i brows to http://127.0.0.1/YASS/ the form fields dosnt apears but all text is ok (Title, login, password)!

Can some one help please.

THKS


Messages In This Thread
The form field dont appears - by El Forum - 08-02-2010, 10:24 AM
The form field dont appears - by El Forum - 08-02-2010, 11:09 AM
The form field dont appears - by El Forum - 08-02-2010, 04:57 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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