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

  • Home
  • SEARCH
  • 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 6744739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:07:11+00:00 2026-05-26T12:07:11+00:00

this is most likely a simple answer that i have overlooked.. I am trying

  • 0

this is most likely a simple answer that i have overlooked..

I am trying to create a customer controller that accesses a custom model in FuelPHP as follows:

class Controller_Casting extends Controller
{
   public function action_index()
   {
      Model_casting::author_get();
   }
}

class Model_casting
{
   ## --------------------
   public function author_get()
   {
      $query = DB::query('SELECT * FROM youtube_author');
      $result = $query->execute(); 
      print_r($result);     
   }   
}

An error is generated by the controller:

ErrorException [ Error ]: Class 'Model_casting' not found

In code igniter i would have to load the model before using it.. How do you do the same thing in FuelPHP (which i presume is where the issue lies)..

Thanks,

  • 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-26T12:07:12+00:00Added an answer on May 26, 2026 at 12:07 pm

    Also one more thing. If class names should always be formatted like Model_Casting. First letter uppercase and after a ‘_’ also uppercased. Just a tip!

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

Sidebar

Related Questions

My question is simple (although the answer will most likely not be): I'm trying
This is a very simple question, and most likely requires a very simple answer.
I know this is most-likely a simple question but when you restore a database
This is not as simple as it seems. Most of you are likely thinking
I guess this is an odd one, and the answer is most likely it
I have a simple server that looks something like this: void *run_thread(void *arg) {
I'm trying to create a simple report on an intranet site. Based on this
This is most likely not an easy one but here is the situation: I
I'm pulling in xml using the cocoa NSXmlParser. Since this process most likely won't
This most be the second most simple rollover effect, still I don't find any

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.