Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 61-70 of 350 result(s).

Install, update and use Yii with WAMP server

Created 3 years ago by mrsHow-tos5 comments – viewed 42,012 times – ( +5 / -1 ) – version 1.1
Here I am describing how you can install and update Yii in WAMP sever.

How to use YiiBooster TbFileUpload widget

Created 3 years ago by Antonio RamirezHow-tos15 comments – viewed 41,847 times – ( +11 ) – version 1.1
The following wiki is to explain how to make use of the TbFileUpload widget from YiiBooster. I have received a couple of requests and I thought was worth writing a wiki for it.

Searching and Sorting by Count of Related Items in CGridView

Created 4 years ago by softarkHow-tos13 comments – viewed 41,060 times – ( +31 ) – version 1.1
Let's say we have two models and relation between them:

Single sign on across multiple subdomains

Created 5 years ago by ianaréHow-tos10 comments – viewed 41,036 times – ( +32 ) – version 1.1
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

Write & use a custom Component in Yii2.0

Created about a year ago by sirin kHow-tos4 comments – viewed 40,930 times – ( +16 ) – version 2.0
This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

File uploads in CForm (Form builder)

Created 4 years ago by Luke JurgsHow-tos2 comments – viewed 40,697 times – ( +12 ) – version 1.1
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

Filter / Search with CListView

Created 4 years ago by JohnPollardHow-tos9 comments – viewed 39,734 times – ( +29 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

How to use a Widget as an Action Provider

Created 5 years ago by Antonio RamirezHow-tos14 comments – viewed 39,709 times – ( +27 ) – version 1.1
As written on the API docs: An Action Provider Widget is a widget that has declared several actions by using its 'public static function actions()'. After, a Controller can easily import all its declared actions on its 'public function actions()'.
tags: Widgets, CAction

How to use GridView with AJAX

Created 2 years ago by Antonio RamirezHow-tos6 comments – viewed 39,423 times – ( +14 ) – version 2.0
With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.
tags: yii2, pjax, widget

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 6 years ago by mindehHow-tos6 comments – viewed 39,091 times – ( +46 ) – version 1.1
Original source code and idea are from: PHP, PDO & Nested Transactions.