Sorted by viewsX
Displaying 361-370 of 761 result(s).

Auto set model fields values

Created 3 years ago by vibhaJadwaniTutorials3 comments – viewed 17,271 times – ( +9 ) – version 1.1
This is a tutorial for how to auto set model values without any code.

pass variables or content block from view file to layout file

Created 3 years ago by yiqing95How-tos0 comments – viewed 17,234 times – ( +2 ) – version 1.1
If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

Displaying uploaded file from DB for update with FileInput widget

Created about a year ago by Kartik VHow-tos3 comments – viewed 17,173 times – ( +39 / -5 ) – version 2.0
This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

multiple CActiveDataProviders in one CGridView

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos6 comments – viewed 16,871 times – ( +7 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

A Multi-Tenant Strategy using Yii and MySQL

Created about a year ago by JFReyesHow-tos8 comments – viewed 16,768 times – ( +10 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

Using updateAll and deleteAll with scopes

Created about a year ago by le_topHow-tos4 comments – viewed 16,733 times – ( +5 ) – version 1.1
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.

How to create a Widget - Recent Comments widget

Created about a year ago by Nisanth thulasiHow-tos3 comments – viewed 16,668 times – ( +8 ) – version all
Here's a simple way to create a Recent comments showing widget to be used in your templates. The idea is just to highlighting your blog's new comments.

Popup AJAX DialogBox without any extension

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos6 comments – viewed 16,645 times – ( +8 / -1 )
In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

Step by step for how to full export Yii2 grid to excel

Created about a year ago by Scott_HuangTips3 comments – viewed 16,474 times – version 2.0
We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created 3 years ago by skwordenHow-tos4 comments – viewed 16,445 times – ( +4 / -1 ) – version 1.1
I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.