[eluser]heavener[/eluser]
Hi all, I hope anyone can help with this...
Here's the deal: I installed
The Auth Library 1.01 and now I am trying to include the
Login View files in to my
Home page View.
It (
home_main) simply looks like this:
Code:
<div class="sidebar">
<h3>Log In</h3>
<?php $this->load->view('auth/login-home'); ?>
</div>
You'll notice that I'm using
login-home, because its the login form altered for my home page.
And here is what what my
login-home looks like:
Code:
<form method="POST">
Username/Email:<br />
<input type="text" name="username" value="<?php echo set_value('username'); ?>" size="50" class="form" /><?php echo form_error('username'); ?><br /><br />
Password:<br />
<input type="password" name="password" value="<?php echo set_value('password'); ?>" size="50" class="form" /><?php echo form_error('password'); ?><br /><br />
<input type="submit" value="Login" name="login" />
</form>
So, I constructed my
Controller loads like this:
Code:
function index()
{
$this->load->view('site/header');
$this->load->view('pages/home_main');
$this->load->view('site/footer');
}
But... when I load
login-home inside of
home_main, the markup
only outputs the
home_main markup, and without the
login-home code!
Here's what it outputs:
Code:
<div class="sidebar">
<h3>Log In</h3>
<form method="POST">
Username/Email:<br />
This sounds pretty confusing, but
I rreeealllly hope someone can help!
Thanks! :lol: