Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6654719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:25:25+00:00 2026-05-26T01:25:25+00:00

I have sidebar.php in my views folder. It contains this code: <div class=title_box> Login

  • 0

I have sidebar.php in my views folder. It contains this code:

<div class="title_box">
    Login
</div>
<div class="border_box">
    <div style="height:150px">
        <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>

I have two other views. index.php and registration.php.

In registration.php, in the appropriate point, I do:

$this->load->view('sidebar')

It loads my sidebar exactly as expected in my registration page.

But the same code, in index.php view, gives me an error and refuses to show the sidebar.

This is the error I get:

codeigniter error

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:25:25+00:00Added an answer on May 26, 2026 at 1:25 am

    You need to load the form helper, or the form_validation library (which automatically includes the form and url helper) in the controller calling those views (or one of them, as views are buffered so you can call one inside another and have the same vars available).

    The error means the function form_open(), which is inside the form helper, is not being loaded.

    Thnaks to @Robin Castlin for the example code.
    In your controller, load

    $this->load->helper('form');
    

    OR just

    $this->load->library('form_validation');
    

    The you can load your views.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an issue with dynamically resizing the height of my sidebar div to
I am using wordpress and on the page sidebar.php I have the following code:
I have this sidebar code <li><a href=/restaurant_pos><span>Restaurant POS Systems</span></a> <ul> <li><a href=/restaurant_pos>Restaurant POS Systems</a></li>
I'm using this code to make #sidebar 's height match #post_content 's height: <script
I have put some php code in a sidebar-01.php i like in my template
I have an Outlook style app. So basically I have a sidebar on the
I have the following code: $(document).ready(function() { // Manage sidebar category display jQuery(#categories >
I have the age-old problem of a div wrapping a two-column layout. My sidebar
I've created a blog main page using PHP and have included a sidebar and
i have 4 posts belonging to news category. I've added a this code in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.