Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 51-60 of 339 result(s).

File uploads in CForm (Form builder)

Created 3 years ago by Luke JurgsHow-tos2 comments – viewed 36,573 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.

How to use YiiBooster TbFileUpload widget

Created 2 years ago by Antonio RamirezHow-tos15 comments – viewed 36,075 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.

Real-time display of server push data using Server-Sent Events (SSE)

Created 3 years ago by bennounaHow-tos16 comments – viewed 35,984 times – ( +12 ) – version 1.1
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).

How to hide /frontend/web in url addresses on apache

Created 7 months ago by raminiousHow-tos11 comments – viewed 35,581 times – ( +12 ) – version 2.0
There is an issue on Yii2 to redirecting / urls to /frontend/web. In other words we need a way to hidden /frontend/web from addresses. We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 4 years ago by xrxHow-tos17 comments – viewed 35,120 times – ( +24 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

Filter / Search with CListView

Created 3 years ago by JohnPollardHow-tos9 comments – viewed 35,013 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 4 years ago by Antonio RamirezHow-tos14 comments – viewed 34,853 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

Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Created about a year ago by Gerhard LiebenbergHow-tos2 comments – viewed 34,656 times – ( +6 / -1 ) – version 1.1
I have a table (account) which contains "General Ledger" accounts. Each account has its own account_description - such as 'inventory', 'sales', etc.

Searching and Sorting by Count of Related Items in CGridView

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

Install, update and use Yii with WAMP server

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