8/29/2023 0 Comments Yii2 Theme![]() In order to do that, we are going to include the following on our composer.json file: “require”: In order to check whether our visitor is using a mobile, tablet or desktop device, we are going to use the wonderfully made class Mobile_Detect from mr Serban Ghitta (Thanks buddy!). I am not going to explain how to install and configure your Yii2 Application (for a brief hint, please check my previous post on Yii2: Adding FontAwesome to your Yii2 Project Via Composer) so I assume that you have already a Yii2 application ready folder structure. On this article, I am going to explain how to use it on your Application bootstrap process.įor our example, our site has two themes, one for desktop and the other for mobile rendering respectively, and we wish to switch between themes after detecting user’s platform. ![]() Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are `composer` based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |