arodu / cakelte

AdminLTE plugin for CakePHP
https://packagist.org/packages/arodu/cakelte
MIT License
28 stars 6 forks source link

Unable to add menu items in Sidebar. #81

Closed ashishonmobile closed 4 months ago

ashishonmobile commented 4 months ago

Dear Arodu,

I have followed the steps given in your readme file and I was trying to update the menu items but after adding one more item inside menu.php file inside templates/plugin/CakeLte/templates/element/sidebar/menu.php the item is not displaying in left handside of the menubar.

Please let me know If I am doing anything wrong.

Regards Ashish

arodu commented 4 months ago

the correct route should be templates/plugin/CakeLte/element/sidebar/menu.php

please, let me know if there is anything in the readme that is not correct.

arodu commented 4 months ago

You can also copy those files with this command bin/cake cakelte copy_files sidebar

ashishonmobile commented 4 months ago

@arodu I followed your steps but still I am not able to see my menu items.

Screenshot 2024-04-27 at 6 05 25 PM

Please find the attached screen shot.

arodu commented 4 months ago

this is so weird, the way you have it it should work By adding the menu file with that structure it should replace the one in the plugin, that is something that cakephp itself does Show me your AppView file, let's see how you are loading the templates, what version are you using? do you have skype or telegram?

ashishonmobile commented 4 months ago

I just sent a message to your skype id.

arodu commented 4 months ago

you're using the same array key for both menu items simpleLink.. just changes it. let me know, if works for you

ashishonmobile commented 4 months ago

Yes it worked.