A Yii auto-bootstraped module automatically calls the bootstrap method.
We we're explicitly calling the bootstrap method which was resulting in everything in the module running twice. For example, outputting the custom navigation items twice.
Since the only other thing in our init method was to call the parent init, the whole method can be removed
A Yii auto-bootstraped module automatically calls the
bootstrap
method.We we're explicitly calling the bootstrap method which was resulting in everything in the module running twice. For example, outputting the custom navigation items twice.
Since the only other thing in our
init
method was to call the parentinit
, the whole method can be removedRef: https://www.yiiframework.com/doc/guide/2.0/en/structure-extensions#bootstrapping-classes