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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:46:15+00:00 2026-06-01T23:46:15+00:00

I have the controller itself loading properly however I don’t think I have my

  • 0

I have the controller itself loading properly however I don’t think I have my controller written correctly according to the documentation for the wiredesignz moduler extentions codeigniter framework plugin. Reason I’m saying I might not have written it properly is because I’m receiving plenty of errors.

Errors:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI::$data

Filename: MX/Controller.php

Line Number: 58
A PHP Error was encountered

Severity: Notice

Message: Indirect modification of overloaded property Quotes::$data has no effect

Filename: controllers/quotes.php

Line Number: 71

https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home

Here’s my controller:

<?php

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

class Quotes extends MX_Controller
{

public function __construct()
{
    parent::__construct();
    $this->load->library('kowauth');

}

public function index()
{
    //Config Defaults Start
    $msgBoxMsgs = array(); //msgType = dl, info, warn, note, msg
    $cssPageAddons = ''; //If you have extra CSS for this view append it here
    $jsPageAddons = ''; //If you have extra JS for this view append it here
    $metaAddons = ''; //Sometimes there is a need for additional Meta Data such in the case of Facebook addon's
    $siteTitle = ''; //alter only if you need something other than the default for this view.
    //Config Defaults Start


    //examples of how to use the message box system (css not included).
    //$msgBoxMsgs[] = array('msgType' => 'dl', 'theMsg' => 'This is a Blank Message Box...');

    /**********************************************************Your Coding Logic Here, Start*/

    // Checks to see if a session is active for user and shows corresponding view page
    if ($this->kowauth->isLoggedIn())
    {
        $bodyContent = "testing"; //which view file
    }
    else
    {
        redirect('login', 'refresh');
    }
    $bodyType = "full"; //type of template

    /***********************************************************Your Coding Logic Here, End*/

    //Double checks if any default variables have been changed, Start.
    //If msgBoxMsgs array has anything in it, if so displays it in view, else does nothing.
    if (count($msgBoxMsgs) !== 0)
    {
        $msgBoxes = $this->msgboxes->buildMsgBoxesOutput(array('display' => 'show',
            'msgs' => $msgBoxMsgs));
    }
    else
    {
        $msgBoxes = array('display' => 'none');
    }

    if ($siteTitle == '')
    {
        $siteTitle = $this->metatags->SiteTitle(); //reads
    }

    //Double checks if any default variables have been changed, End.

    $this->data['msgBoxes'] = $msgBoxes;
    $this->data['cssPageAddons'] = $cssPageAddons; //if there is any additional CSS to add from above Variable this will send it to the view.
    $this->data['jsPageAddons'] = $jsPageAddons; //if there is any addictional JS to add from the above variable this will send it to the view.
    $this->data['metaAddons'] = $metaAddons; //if there is any addictional meta data to add from the above variable this will send it to the view.
    $this->data['pageMetaTags'] = $this->metatags->MetaTags(); //defaults can be changed via models/metatags.php
    $this->data['siteTitle'] = $siteTitle; //defaults can be changed via models/metatags.php
    $this->data['bodyType'] = $bodyType;
    $this->data['bodyContent'] = $bodyContent;
    $this->data['userData'] = $this->users->getUserByUserID($this->session->userdata('userID'));
    $roster = $this->kowauth->getRosterList($this->data['userData']->usersRolesID);
    $userRoster = array();
    foreach ($roster AS $member)
    {
        $userRoster[$member->id] = $member->rosterName;
    }
    $this->data['userRoster'] = $userRoster;
    $this->data['personalMessages'] = array($this->pmmodel->
        getInboxUnreadMessagesCount($this->session->userdata('userID')), $this->pmmodel->
        getInboxMessagesCount($this->session->userdata('userID')), $this->pmmodel->
        getLast5Messages($this->session->userdata('userID')));
    $this->load->view('cpanel/index', $this->data);
}
}

/* End of file quotes.php */
/* Location: ./application/modules/bios/controllers/quotes.php */
  • 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-01T23:46:17+00:00Added an answer on June 1, 2026 at 11:46 pm

    I’m not familiar with the modular extension but it looks as though the error is you are trying to asign values to $this->data without having created $this->data

    Try adding this and see what happens

    class Quotes extends MX_Controller
    {
        public $data;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have controller with action new , and I want it to create ActiveRecord::Base
I have controller PlayerController and actions inside: View , Info , List . So
I have Controller: [MySite]\Controllers\DistributionTools\TrackingChannelsController.cs [HttpPost] public void InitTcFirstPageView() { var model = new TcFirstPageModel
I have @Controller @RequestMapping(value=core/*) public class CoreController { public static String exceptionOccurredView = /core/exceptionOccurred;
Hi guys i have controller which returns a partial view, the controller is called
I'm facing following problem actually: I'm using Spring with jQuery. I have Controller: @Controller
I have a controller which allows only POST for certain actions: static allowedMethods =
i have a controller like this one : <?php if( ! defined('BASEPATH')) exit ('No
I have a controller method in Ruby on Rails 3 that accepts application/JSON as
I have a controller Contracts and 3 GET methods: All, Focus, which contains grid,

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.