06-12-2016, 11:37 PM
I have a error
I get information passed through my index
When I echo $info['module_display_id']; it throws the error.
I var dump $info on my controller below and outputs.
Here is the full controller I use HMVC How can I get it to work.
Code:
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:
<?php
class Carousel extends MX_Controller {
public function __construct() {
parent::__construct();
}
public function index($info) {
static $module = 0;
$data['banners'] = array();
var_dump($info);
echo $info['module_display_id'];
$data['module'] = $module++;
$this->load->view('theme/default/template/module/carousel', $data);
}
}