Closed rosimildo closed 9 years ago
I develop this using advanced template, but it will work with basic too which i will explain later.
In yii2 you can add 3rd party plug-in in 2 way.
i tried to explain this 2 way as use as an extension.
AdminUiBootstrap.php
is the file where main configuration written which will decide when to apply this theme. In advanced template we have two different configuration.
I choose backend to apply this template.
If you want to use this template for basic Application template then you need to modify AdminUiBootstrap.php
$app->set('view', [
'class'=>'yii\web\View',
'theme' => [
'pathMap' => ['@backend/views' => '@backend/themes/adminui'], // for Admin theme which resides on extension/adminui
'baseUrl' => '@web/themes/adminui',
],
]);
modify pathMap part to use it.
Let me know if there are more query.
It would be nice if a demo, describing step by step how to use the module in an application that uses: a) The basic template b) the advanced template
Also, describing the differences between use as an extension and a module.