Wiki

Sorted by viewsX
Displaying 421-430 of 753 result(s).

Using events with CAction classes

Created 3 years ago by Antonio RamirezTips0 comments – viewed 12,518 times – ( +9 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

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

Created 10 months ago by Scott_HuangTips2 comments – viewed 12,447 times – version 2.0
We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

Visualization tree-multi subcategories as listbox or dropdownlist

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 12,439 times – ( +4 ) – version 1.1
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?

CJuiTabs Content

Created 2 years ago by mbalaTips3 comments – viewed 12,435 times – ( +6 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Managing constants easily

Created 3 years ago by briiC.lvTips4 comments – viewed 12,432 times – ( +4 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.

i18n for your model in just 1 line

Created 5 years ago by mintaoTutorials0 comments – viewed 12,309 times – ( +12 ) – version 1.1
A simple trick to get the localized version of a model field is to add this little method to your models.
tags: i18n

Using SQLite and CDbMessageSource as a module

Created 3 years ago by pheadeauxHow-tos5 comments – viewed 12,280 times – ( +5 ) – version 1.1
There are scenarios when you work with DVCS (like Mercurial or Git) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very time consuming. Plus, when working in a team, you never know when the database was updated.

Upload CSV File

Created 2 years ago by bhavesh vaghelaTutorials2 comments – viewed 12,236 times – ( +7 ) – version 1.1
View file

Using Google Maps in Yii Applications via Jquery

Created 2 years ago by bluyellHow-tos2 comments – viewed 12,205 times – ( +2 / -1 ) – version 1.1

YII SaaS Multi Tenant application with single database

Created 2 years ago by Rajith RTutorials5 comments – viewed 12,162 times – ( +11 / -10 ) – version 1.1
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.