
I am good at containing small bits of information. 'pathMap' => => theme layout "project/themes/mytheme/layouts/main.php" PathMap - it override the original path to theme path. Here we have to set theme configuration as array. Theme component of application is available (if not we want to add) inside the 'config/web.php' file under the components array. Create "main.php" file inside the "NEWTHEME/layouts" folder.Create "layouts" folder inside the "NEWTHEME" folder.Download the yii2.0 theme or create new theme like "NEWTHEME" inside the "themes" folder.Create new folder inside the application like "themes".Install Themeįirst we have to install the theme in yiiframework2.0.Please follow the below step to run new theme. In yiiframework 2.0, we are having lot of new features in theming compare to yiiframework 1.0 like We can override the the active theme. I cut out a lot of redundant stuff.Themes is very important to make cool our application. 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. Part of my theme configuration for Datta Able looked like this: 'view' => [ 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.
