Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 191-200 of 355 result(s).

How to hide `index` action from URL

Created 4 years ago by rootbearHow-tos2 comments – viewed 16,079 times – ( +3 / -2 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index

Sub-domains with different databases in Yii!

Created 5 years ago by jwerdHow-tos5 comments – viewed 15,981 times – ( +2 ) – version 1.1
Sub-domains with different databases in Yii!

Managing different Bootstrap form layouts with yii2-field-range extension.

Created 2 years ago by Kartik VHow-tos0 comments – viewed 15,945 times – ( +37 ) – version 2.0
This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

Changing Controllers Name

Created 6 years ago by TrejderHow-tos0 comments – viewed 15,932 times – ( +5 ) – version 1.1
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

get summary of related model via STAT relation

Created 3 years ago by rootbearHow-tos2 comments – viewed 15,827 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

How to implement form events

Created 2 years ago by Antonio RamirezHow-tos4 comments – viewed 15,650 times – ( +6 ) – version 2.0
You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.
tags: yii2, forms, how to

How to create a simple logout link in the view?

Created 2 years ago by mi.sarahHow-tos0 comments – viewed 15,630 times – ( +1 / -3 ) – version 1.1
Here you learn to create and set a simple ahref-link to logout the current user.
tags: Logout, Link, user, URL, views

Insert a multirow header in CGridView

Created 3 years ago by PeppeHow-tos2 comments – viewed 15,624 times – ( +6 ) – version 1.1
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

Create sitemap.xml file dynamically on root folder with one hit

Created 4 years ago by kiran sharmaHow-tos1 comment – viewed 15,500 times – ( +5 / -5 ) – version 1.1
I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.
tags: SEO, SiteMap, XML