Skip to content
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

Guys, you have an error in your PersistentMenu example #35

Closed
arsengoian opened this issue May 7, 2017 · 2 comments
Closed

Guys, you have an error in your PersistentMenu example #35

arsengoian opened this issue May 7, 2017 · 2 comments
Labels

Comments

@arsengoian
Copy link

arsengoian commented May 7, 2017

It actuually killed me two hours to figure out what the issue was =( :

In your file index.php

you have

                    new LocalizedMenu('default', false, [
                        new MenuItem('nested', 'My Account',
                            new MenuItem('nested', 'History',
                                new MenuItem('postback', 'History Old', 'HISTORY_OLD_PAYLOAD'),
                                new MenuItem('postback', 'History New', 'HISTORY_NEW_PAYLOAD')
                            ),
                            new MenuItem('postback', 'Contact_Info', 'CONTACT_INFO_PAYLOAD')
                        )
                    ])

Although it must be:

        new LocalizedMenu('default', false, [
            new MenuItem('nested', 'My Account', [
                new MenuItem('nested', 'History', [
                    new MenuItem('postback', 'History Old', 'HISTORY_OLD_PAYLOAD'),
                    new MenuItem('postback', 'History New', 'HISTORY_NEW_PAYLOAD')
                ]),
                new MenuItem('postback', 'Contact_Info', 'CONTACT_INFO_PAYLOAD')
            ])
        ]);

This was actually very confusing and hard to notice, please fix this

@wittfabian
Copy link
Contributor

Please use the next time a clear title.

@wittfabian
Copy link
Contributor

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants