[eluser]xbonez[/eluser]
In my views folder, I have the three following views:
index.php, registration.php, sidebar.php
Sidebar.php contains this code:
Code:
<div class="title_box">
Login
</div>
<div class="border_box">
<div>
<br/>
<?php echo form_open('login'); ?>
<strong>Username:</strong> <input type="text" name="username" size="13"/><br/>
<strong>Password:</strong> <input type="password" name="password" size="13"/><br/>
<div class="login_button">
<p><input type="image" src="/igniter/assets/images/login.gif" name="login"></p>
</div>
</form>
<div class="forgot_name">
<br/>
<a href="">Forgot username or password?</a>
</div>
</div>
</div>
At the appropriate place in index.php and registration.php, I do:
Code:
$this->load_>view('sidebar');
This brings up my sidebar just as expected in the registration view, but in the index view, I get this error:
Code:
Fatal error: Call to undefined function form_open() in C:\wamp\www\igniter\application\views\sidebar.php on line 19
Where am I going wrong? I've spent hours trying to fix it.