(08-06-2016, 05:21 PM)waptik Wrote: try:<?php echo $this->multi_menu->render('Item-0'); ?>or <?php echo $this->multi_menu->render(array()); ?> since line 298 of Multi_menu.php states as follow : public function render($config = array(), $divided_items_list = array(), $divider = ''). so parameter 1 must be an array or any kin of value. by the way, what did you put inside $this->multi_menu->render() ?
I am not sure to be following you but docs said:
Quote:Load the library manually or load automatically definied in application/config/autoload.php and it's ready to use. See example below
<?php
// execute query and get array data
$this->load->model("menu_model", "menu");
$items = $this->menu->all();
// load the library and pass the array data
$this->load->library("multi_menu");
$this->multi_menu->set_items($items);
// call render in view
echo $this->multi_menu->render();
?>
That's why I am calling render() without values