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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:40:22+00:00 2026-06-10T05:40:22+00:00

Possible Duplicate: Fully Object Oriented framework in PHP I am frustrated with CodeIgniter about

  • 0

Possible Duplicate:
Fully Object Oriented framework in PHP

I am frustrated with CodeIgniter about one thing, you can’t extend neither controllers nor models. I know you can do HMVC with a mod, and that somewhat gives you the inheritance abilities, but I’m not satisfied with that. Is there a PHP MVC framework that is object oriented and basically allows to extend the controllers, models?

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

    The documentation for CodeIgniter says otherwise – one of first examples is:

    If all you need to do is add some functionality to an existing library – perhaps add a function or two – then it’s overkill to replace the entire library with your version. In this case it’s better to simply extend the class. Extending a class is nearly identical to replacing a class with a couple exceptions:

    The class declaration must extend the parent class.
    Your new class name and filename must be prefixed with MY_ (this item is configurable. See below.).

    class MY_Controller extends CI_Controller {
    
        function __construct()
        {
            parent::__construct();
        }
    }
    
    // Then you can use it like this:
    class Welcome extends MY_Controller {
    
        function __construct()
        {
            parent::__construct();
        }
    
        function index()
        {
            $this->load->view('welcome_message');
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: What are the reasons why Map.get(Object key) is not (fully) generic According
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: What are the reasons why Map.get(Object key) is not (fully) generic From
Possible Duplicate: What are the reasons why Map.get(Object key) is not (fully) generic This
Possible Duplicate: How do I get current page full URL in PHP How can
Possible Duplicate: What are the reasons why Map.get(Object key) is not (fully) generic This
Possible Duplicate: What are the reasons why Map.get(Object key) is not (fully) generic Java
Possible Duplicate: C# full screen console? I am trying to make one of my
Possible Duplicate: Retrieve (or simulate) full query from PDO prepared statement I can't figure
Possible Duplicate: How to get full URL on the address bar using PHP I

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.