D
D
dev4002016-11-15 03:22:17
Yii
dev400, 2016-11-15 03:22:17

How to implement a dynamic menu item in yii2?

The system generally prohibits registration, but sometimes they want to enable it. Is there any way to make the "registration" menu item dynamic, appearing only when access to the registration action is open?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-11-15
@dev400

Goodnight.
Get yourself a parameter and check if true - show the menu item, if false - no.
If you have a site settings module, create it there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question