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 9024221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:57:09+00:00 2026-06-16T05:57:09+00:00

I am utterly and completely confused. I’ve looked through all the documentation and I

  • 0

I am utterly and completely confused. I’ve looked through all the documentation and I can’t find a solution. Setup: CI 2.1.3, QNAP server.

Problem: I cannot use a private function on a controller:

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Signup extends CI_Controller {

public function index()
{
    _loadcontent();
}

private function _loadcontent()
{
        $this->load->view('welcome_message');
}
}

/* End of file signup.php */
/* Location: ./application/controllers/account/signup.php */

it won’t work and gives an HTTP Error 500 (Internal Server Error). HOWEVER, placing the file in the main controller directory works. Does anybody have any clue? is this a bug? Thanks in advance.

  • 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-06-16T05:57:10+00:00Added an answer on June 16, 2026 at 5:57 am

    You need to call the function using $this.

    public function index()
    {
        $this->_loadcontent();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I may be utterly stupid, but I can not find out how to remove
location.hash seems to be utterly broken in Safari 4: It can be set initially,
So, time for a newbie question but so utterly important since the documentation seems
I have a somewhat stupid problem because it's supposed to be utterly simple ...
After making some changes to a method, I find it utterly annoying to have
I am utterly mystified by this error, and I hope you can help me!
My brain must be utterly broken, because I can't figure out why this isn't
I'm utterly lost as to how one can programmatically publish a Google Document (specifically
I am utterly confused with trying to use babel with flask for language translation.
I’ve started learning WCF and I’m already utterly confused. I did a bit of

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.