(it affects the expand/collapse button in expandable boxes).Class in $collapseButtonTemplate should be "btn btn-box-tool", not "btn btn-xs".Vendor\insolita\yii2-adminlte-widgets\CollapseBox.php There is a typo: COLOR_LIGHT_BLUE should be 'lightblue', not 'light-blue'.Vendor\insolita\yii2-adminlte-widgets\LteConst.php You only have to prepare the main layout file and Asset bundle, see above.Ĭheck its web for my comment. Works good for many UI items: Boxes, Tile, Callout, Alerts and Chatbox. So lets check extensions which will do it for us Now you are done, you can start using HTML and JS stuff from AdminLTE. It means you forgot to copy some PHP code from the old layout file to the new one.This error can appear: "Headers already sent" Refresh your Yii page and check "developer tools" for network errors.# You can automatically import your SQL (root/root, dbname scotchbox) #mysql -u root -proot scotchbox \yii\web\View::POS_HEAD] // POS_END cause conflict with YiiAsset public $css = [ It contains following: # Composer: # (In case of composer errors, it can help to delete the vendor-folder and composer.lock file) It requires file vagrant/vagrant.sh, because I wanted to enhance the server a bit. # Virtual machine will be available on IP A.B.C.D (in our case 11.22.33.44, see above) # Virtual can access your host machine on IP A.B.C.1 (this rule is given by Vagrant) PHP short tags search: ( Ĭonfig.vm.provision "shell", path: "./vagrant/vagrant.sh", privileged: false Return $this->redirect('controller/action')->send() // NO URLs (in Notepad++) return $this->redirect('/controller/action')->send() // NO If you press Ctrl+Shift+F you will be able to replace in all files. I am using Notepad++ for massive changes using Regex. When URL is parsed and controllers are called, but also when a new URL is created using the URL helper. Without the rules the link would look like this. Now the language-switching links will produce URL like this. If you want to have the sys_lang in the URL, right behind the domain name, following URL rules can be created in config/web.php: 'components' => [ Its content looks like this: sourceLanguage Best is to create a BaseController which will be extended by all controllers. Now we need to process the new GET parameter "sys_lang" and save it to Session in order to keep the new language. So let's add the language switcher into the main menu: echo Nav::widget([ Here I will show how language can be switched and saved into the URL. Switching languages and Language in URL ¶ Začínáme s PHP frameworkem Yii2 (I) česky - YouTube.Tests - unit + functional + acceptance (opa) + coverageĪrticles are separated into more files as there is the max lenght for each file on wiki.AdminLTE - overview & general research on the theme.How to enter Docker's bash (cli, command line).Enabling xDebug in Docker, yii demo application.Running Yii project in Docker (Update: xDebug added below!).Virtualization - Vagrant and Docker - why and how.Switching languages and Language in URL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |