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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:16:05+00:00 2026-05-24T16:16:05+00:00

As per a previous question I’m setting up the HMVC extension for codeigniter. https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home

  • 0

As per a previous question I’m setting up the HMVC extension for codeigniter.
https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home
Unfortunately I can’t find much in the way of documentation.

I’m confused about how to set up my folders. I’ve copied the MX folder in third_party over as well as the files in the core folder. After that I created a application/modules folder. From there I want to create a banner slider widget. I’ve created a subfolder in modules called ‘slider’ with ‘controllers’, ‘models’, and ‘views’ folders inside of that. Inside my application/modules/slider/controllers/ folder I have a controller called main.php. Inside my application/modules/slider/models/ folder I have a model called slider_model.php. First, is this a proper folder structure for using this? If so here is the issue I’m having.

My welcome.php controller that loads the site looks like this:

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

/**
 * Index Page for this controller.
 *
 * Maps to the following URL
 *      http://example.com/index.php/welcome
 *  - or -  
 *      http://example.com/index.php/welcome/index
 *  - or -
 * Since this controller is set as the default controller in 
 * config/routes.php, it's displayed at http://example.com/
 *
 * So any other public methods not prefixed with an underscore will
 * map to /index.php/welcome/<method_name>
 * @see http://codeigniter.com/user_guide/general/urls.html
 */
public function index()
{
    $this->load->view('header');
    $this->load->view('welcome_message');
    $this->load->view('footer');
}
}

 /* End of file welcome.php */
 /* Location: ./application/controllers/welcome.php */

Inside the welcome_message.php view I have the following:

<? echo Modules::run("slider/main/getcontent/"); ?>

Then, inside the main controller I have this:

<?php
class Main extends MX_Controller{
function __construct(){
    parent::__construct();
    $this->load->model('slider/Slider_model','Slider');
}

function getcontent(){
    //
    //echo $this->Slider->test_conn();
    echo "Testing...";
}   
}

?>

As it stands I’m getting this error: Fatal error: Cannot redeclare class CI in /homepages/15/d94236848/htdocs/application/third_party/MX/Base.php on line 57

What am I missing?

  • 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-24T16:16:07+00:00Added an answer on May 24, 2026 at 4:16 pm

    As per the comment above I’m reposting my comment as the answer.

    Figured it out. On my welcome.php controller I needed to change it so it extends MX_Controller instead of CI_Controller. I also needed to remove the last slash in the call to the module in welcome_message.php.

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

Sidebar

Related Questions

So as per a previous question of mine I've decided to start a website
I'm using HTML nodes for graphviz per my previous question . Why do I
Per an answer to a previous question (answer here: SQL/Database Views in Grails ),
I'm implementing a table per subclass design I discussed in a previous question .
As per my previous question , I have a working animation which fades in
in my previous question as follows: How to create a copy of a file
Following my previous question . I have a table named activity with 2 columns:
The answer to a previous question showed that Nexus implement a custom authentication helper
Similar to this previous question , I am having a problem with text alignment
Following on from a previous question relating to heap usage restrictions , I'm looking

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.