Welcome Guest, Not a member yet? Register   Sign In
Sidebar view loads into all views but index view

In my views folder, I have the three following views:
index.php, registration.php, sidebar.php

Sidebar.php contains this code:

<div class="title_box">
            <div class="border_box">
                    &lt;?php echo form_open('login'); ?&gt;
                        <strong>Username:</strong> &lt;input type="text" name="username" size="13"/&gt;&lt;br/>
                        <strong>Password:</strong> &lt;input type="password" name="password" size="13"/&gt;&lt;br/>
                        <div class="login_button">
                            <p>&lt;input type="image" src="/igniter/assets/images/login.gif" name="login"&gt;&lt;/p>
                    <div class="forgot_name">
                        <a href="">Forgot username or password?</a>

At the appropriate place in index.php and registration.php, I do:


This brings up my sidebar just as expected in the registration view, but in the index view, I get this error:

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.

Theme © iAndrew 2016 - Forum software by © MyBB