CodeIgniter Forums

Full Version: [Solved] Error On Controller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a error

Severity: Notice
Message: Undefined index: module_display_id
Filename: module/Carousel.php

I get information passed through my index

PHP Code:
public function index($info) {
   // Some code here 

When I echo $info['module_display_id']; it throws the error.

I var dump $info on my controller below and outputs.

PHP Code:
array (size=1)
 0 => 
   array (size=3)
     'module_id' => string '3' (length=1)
     'module_display_id' => string '3' (length=1)
     'module_name' => string 'carousel' (length=8

Here is the full controller I use HMVC How can I get it to work.

PHP Code:

class Carousel extends MX_Controller {
    public function 
__construct() {

    public function 
index($info) {
$module 0;

$data['banners'] = array();



$data['module'] = $module++;


(06-13-2016, 12:39 AM)skunkbad Wrote: [ -> ]$info[0]['module_display_id']

Thanks for that worked.