08-02-2010, 10:24 AM
[eluser]bibos[/eluser]
Hi,
I'm new with CodeIgniter, i start by doing a login form, i have a login_form.php file :
and into my main.php controller i do :
i alsow do in my autoload.php :
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
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>
<?=form_input('UserLogin',set_value('UserLogin'))?>
<label>Password
<span class="small">Add your password</span>
</label>
<?=form_password('UserPassword')?>
<?=form_submit('','Login')?>
<div class="spacer"></div>
</div>
<?=form_close()?>
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