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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:50:26+00:00 2026-05-13T16:50:26+00:00

from javascript i request for a php file. and this php file will call

  • 0

from javascript i request for a php file. and this php file will call a model that extends a super_model.

i wonder where i should include this super_model. in the php file (which acts like a controller) or in the model?

i’ve got other models too, should i include the super_model they all extend in the controllers that are calling them, or in the models above the class function?

  • 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-13T16:50:27+00:00Added an answer on May 13, 2026 at 4:50 pm

    You should look up the php __autoload function, that way you don’t even need to worry about when to include the file. Also, I’d use include_once(), as it’ll make sure the file is only included once (as long as the file your including only has class or function definitions, this is the way to go).

    As far as your specific question goes, if you’re not going to use __autoload, I’d always include_once() the parent in the child class’s definition.

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

Sidebar

Related Questions

For AJAX on my website, I make calls from a Javascript file to something.php?request=bla.
I'm working on a javascript function that when called will make a ajax request
I'm writing a php script that will fetch data from a given URL and
I am loading a .php file via an ExtJS AJAX call like this: menuItemApplication.header.on('click',
How would I call a PHP Method/function from jQuery ajax. Is this even possible?
I am trying to fill a javascript array beaches3 from a php request dynamically
I am trying to do a http head request from the Javascript code to
I have web application of which major part is javascript. I request images from
Possible Duplicate: calling ASP function from javascript okay running this code : <script type=text/javascript>
I am trying to call c# function from javascript the code i have tried

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.