Hello, Everyone!
I use block in Yii 2 but it only display with current action.
Example: when define block in post/newest action. but in site/home I don’t see it. I call newest block in main layout. It only display when I access to post/newest.
Hello, Everyone!
I use block in Yii 2 but it only display with current action.
Example: when define block in post/newest action. but in site/home I don’t see it. I call newest block in main layout. It only display when I access to post/newest.
Tuck it into a reusable widget.
Thank you!
I used widget and it working fine