Welcome Guest, Not a member yet? Register   Sign In
Configuration file not loaded
#4

(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
Reply


Messages In This Thread
Configuration file not loaded - by reynierpm - 08-05-2016, 08:55 PM
RE: Configuration file not loaded - by InsiteFX - 08-05-2016, 09:37 PM
RE: Configuration file not loaded - by waptik - 08-06-2016, 05:21 PM
RE: Configuration file not loaded - by reynierpm - 08-06-2016, 05:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB