Hi, is it possible to load data from database into menu.php?
Hi aveimoug
Glad it works!
Thanks
Hi
At the moment, we do not support this feature by default. If you need to do it, you have to customize it. You can override the current Menu class and add the __construct function as below.app/Core/Adapters/Menu.php
public function __construct($items, $path = "") {
// default $items come from menu.php config file
// you can override the menu $items variable here
// get the data from the database and pass it into $items below.
// but the format must be the same as the menu.php config.
parent::__construct($items, $path);
return $this;
}
Thanks a lot, it works :D
Hello, can you help me about the menu, how did you do it, how did you prepare the database?