Wiki

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

BUM - Add Additional Info to a User

Created 4 years ago by fireflyHow-tos1 comment – viewed 18,496 times – ( +1 / -1 ) – version 1.1
How to add additional information to a user when using BUM extension?

Yii2 and Pdf files with Mpdf

Created 3 years ago by CTalaHow-tos2 comments – viewed 18,264 times – ( +7 / -1 ) – version 2.0
I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

Login Form With email or Whatever

Created 3 years ago by nabil abdoualiHow-tos1 comment – viewed 18,213 times – ( -3 ) – version 1.1
Here is my solution to login with email or anything else This update works with database mysql You must generate the user model with GII

How to pass the third parameter to UserIdentity on login authentication

Created 3 years ago by Rohit SutharHow-tos6 comments – viewed 18,160 times – ( +2 / -1 ) – version 1.1
In this wiki I will show how could wo pass the third parameter to UserIdentity on login authenticate. So we can do separate login authentcation from two or more different models from single login form.

Insert a multirow header in CGridView

Created 4 years ago by PeppeHow-tos2 comments – viewed 18,125 times – ( +6 / -1 ) – 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.

get summary of related model via STAT relation

Created 4 years ago by rootbearHow-tos2 comments – viewed 18,093 times – ( +7 / -2 ) – version 1.1
typical scenario: invoice, invoice items.

How to hide `index` action from URL

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

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created 4 years ago by Gerhard LiebenbergHow-tos0 comments – viewed 17,973 times – ( +4 / -2 ) – version 1.1
If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

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

Created 5 years ago by kiran sharmaHow-tos1 comment – viewed 17,936 times – ( +5 / -6 ) – 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

How to create the custom Drop-down using CHtml::dropDownList

Created 3 years ago by Ankit ModiHow-tos1 comment – viewed 17,753 times – ( -1 ) – version all
Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList