We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Menu::create('navbar', function($menu) { // URL, Title, Attributes foreach (Menus::tree() as $item) { $menu->url('/'.$item->name, $item->name, ['target' => 'blank','class' => 'deneem']); foreach ($item['children'] as $child) { echo "<ol>D" . $child->name . "</ol>"; $menu->dropdown('Settings', function ($sub) { $sub->url('settings/account', $child->name); $sub->url('settings/password', 'Password'); $sub->url('settings/design', 'Design'); }); } } });
in dropdown menu i cant access $child varible why ?
The text was updated successfully, but these errors were encountered:
Solve ?
Sorry, something went wrong.
@efectn did you see pull request in this link? did you test it?
#32
No branches or pull requests
Menu::create('navbar', function($menu) { // URL, Title, Attributes foreach (Menus::tree() as $item) { $menu->url('/'.$item->name, $item->name, ['target' => 'blank','class' => 'deneem']); foreach ($item['children'] as $child) { echo "<ol>D" . $child->name . "</ol>"; $menu->dropdown('Settings', function ($sub) { $sub->url('settings/account', $child->name); $sub->url('settings/password', 'Password'); $sub->url('settings/design', 'Design'); }); } } });
in dropdown menu i cant access $child varible why ?
The text was updated successfully, but these errors were encountered: