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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:19:22+00:00 2026-05-22T19:19:22+00:00

I am trying to load a custom exception class that I created according to

  • 0

I am trying to load a custom exception class that I created according to the instructions here:

http://codeigniter.com/user_guide/general/core_classes.html

MY_Exceptions.php is stored at application/core/

Somehow, when I try loading it, I keep getting this error:

Fatal error: Class ‘MY_Exceptions’ not found in C:\xampp\htdocs\xampp\facebook\application\models\campaign_model.php on line 29

Based on the instructions, it doesn’t say I have to autoload the class or anything. What am I doing wrong?

  • 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-22T19:19:23+00:00Added an answer on May 22, 2026 at 7:19 pm

    MY_Exception.php is stored at application/core/

    Name the class and file MY_Exceptions with an s

    You do not need to autoload or manually load anything in the core directory, nor should you. They are required classes for CI to run that are automatically loaded.

    For creating core classes, use this documentation instead: http://codeigniter.com/user_guide/general/core_classes.html

    Keep in mind that when calling the class you will use the original class name. Let’s say you have created MY_Input. Example:

    $this->input->post();  // Do this
    $this->my_input->post(); // Don't do this
    

    To understand the why and how, see system/core/Common.php function load_class.

    Looking at the docs now, I agree that this should probably be highlighted.

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

Sidebar

Related Questions

All, I am getting the com.mysql.jdbc.Driver exception when trying to load the Driver class
I am trying to load UIActivityIndicatorView custom class, however, I am trying to embed
I am trying o load a custom font in C#, so it is usable
I'm trying to load a custom log.properties file when my application is started. My
I'm trying to load a page that is basically an edit form inside a
I'm trying to extend my CI with a custom library that I plan on
I'm trying to load a custom cursor from a resource file (.rc) in Visual
I'm building my custom cell for a table view. I'm trying to load an
I am trying to load the statcounter script from my custom js file. The
I created a custom membership provider and am getting the following error trying to

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.