dear kongondo, help the beginner:
two languages on the site
connected module 0.2.3
$menu = $modules->get('MarkupMenuBuilder');
$options = array(
'has_children_class' => 'has_children',
'current_class' => 'current',
'menu_css_id' => 'nav_home',
'menu_css_class' => 'slimmenu',
);
echo $menu->render('menu', $options);
1 language - everything is fine, 2 language:
Error: Exception: No menu items found! Confirm that such a menu exists and that it has menu items. (in /var/www/***/site/modules/ProcessMenuBuilder/MarkupMenuBuilder.module line 1415)
<code>#0 /var/www/***/site/modules/ProcessMenuBuilder/MarkupMenuBuilder.module(105): ProcessWire\MarkupMenuBuilder->throwError()</code><br />
<code>#1 /var/www/***/site/templates/home.php(24): ProcessWire\MarkupMenuBuilder->render('menu', Array)</code><br />
<code>#2 /var/www/***/wire/core/TemplateFile.php(287): require('/var/www/...')</code><br />
<code>#3 /var/www/***/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render()</code><br />
<code>#4 /var/www/***/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___render', Array)</code><br />
<code>#5 /var/www/***/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Ar</code></b><br /><br /><small>This error message was shown because: you are logged in as a Superuser. Error has been logged. </small></p>
What did I want to do?