![]() In the very start of a conversion, I usually put a copy of the backend template’s /views directory under themes, rename it to whatever theme name I want to use.Īll of the above are examples of my working code. ![]() 'basePath' => => => => => => => => => => => => redirect lines shown above for modules can also be used for widgets, blocks and any other type of view you need to redirect. ![]() first of all open web.php into config directory of yii2 application, then in component array pass view array like: 'view' > 'theme' > 'pathMap' > 'app/views' > 'webroot/themes/demo/views',, , // here demo is your folder name. Part of my theme configuration for Datta Able looked like this: 'view' => [ Hi you have to do following things for theming in yii2 as simple as yii1 :. You control where the partials are loaded from by code in your layout files. You can put create partials for your layout, your views, module views, block views and widget views. My initial directory structure looks something like this: With Boostrap4, look for the container tags as the cut and paste points for creating your partials. Prior to Bootstrap4, you had to be more careful when breaking the theme into partial views especially if the theme designer’s indents did not line up properly. I have converted several Keene multipurpose frontend themes and recently the Zooki landing page theme. I have converted the Metronic, Datta Able, Amezia, and Admiria admin themes for various projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |