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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:36:13+00:00 2026-06-04T11:36:13+00:00

i have written a small codeigniter test app that is currently running on my

  • 0

i have written a small codeigniter test app that is currently running on my windows box.
i created a linux vm and have tried to install the app on this new virtual server.
some of my web app is running properly but other parts, no.
specifically, this works:

 http://123.123.123.123/myapp/controller1/

but this does not:

 http://123.123.123.123/myapp/controller2/mymethod/1/2/3

It fails with an error that it can’t load controller2_model.

Here’s the actual code for the controller that is failing (it’s really called xferLogger vs. controller2):

 class xferLogger extends CI_Controller { 
      public function __construct() { 
              parent::__construct();
              echo(2); 
              $this->load->model('xferLogger_model'); 
              $this->load->helper('date'); //this library is needed for the base_url() method that is being called in the view "result.php" 
              $this->load->helper('url'); 
      } 

and here’s the model:

class xferLogger_model extends CI_Model { 
    public function __construct() { 
              $this->load->database();
                } 

The full error message is: An error was encountered. Unable to locate the model you have specified: xferlogger_model.

Here’s something I noticed. in the error message, you’ll notice that the “L” in logger is lowercase. but in my code, it’s a capital L.
I’ve checked in my controller, the model itself, and also the routes.php file. I can’t seem to find any problems with my casing.

??

  • 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-04T11:36:14+00:00Added an answer on June 4, 2026 at 11:36 am

    From the userguide: Class names must have the first letter capitalized with the rest of the name lowercase. So therefore:

    class Xferlogger_model extends CI_Model // First letter capitalised
    

    and your model load

    $this->load->model('xferlogger_model');  // lower case
    

    and your PHP filename

    xferlogger_model.php    // lower case
    

    Codeigniter Model Userguide

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

Sidebar

Related Questions

I have written a small chat app that uses mysql + php to facilitate
I have written a small app that puts my bluetooth in discoverable mode for
I have written a small custom web server application in C running on Linux.
I have written a small util in an app that syncs the time from
I have written a small web app to collect some data and store it
I have written a small .net Windows Forms application. And now I decided to
I have written a small makefile for a few simple C programs that compiles
I have written a small test program in which I try to use the
I have written a small XML validator, that takes in an XML file and
I have written a small program and compiled it under Solaris/Linux platform to measure

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.