NullRefExcep/yii2-cms

Access to a Block model from corresponding Widget

tenfrow opened this issue · 2 comments

Each cms block consists of Block and Widget. It may be useful to access to corresponding Block directly from the Widget instance (something like getter)

Can U show an example?

@tenfrow now you can use getBlock method.