Skip to content

My Code Doesn't Work ! #51

New issue

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

Closed
efectn opened this issue Oct 29, 2019 · 2 comments
Closed

My Code Doesn't Work ! #51

efectn opened this issue Oct 29, 2019 · 2 comments

Comments

@efectn
Copy link

efectn commented Oct 29, 2019

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 ?

@efectn
Copy link
Author

efectn commented Nov 1, 2019

Solve ?

@pishguy
Copy link

pishguy commented Apr 19, 2021

@efectn did you see pull request in this link? did you test it?

#32

@efectn efectn closed this as completed Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants