Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 71-80 of 354 result(s).

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

Created 7 years ago by mindehHow-tos6 comments – viewed 43,373 times – ( +47 / -1 ) – version 1.1
Original source code and idea are from: PHP, PDO & Nested Transactions.

File uploads in CForm (Form builder)

Created 5 years ago by Luke JurgsHow-tos2 comments – viewed 42,610 times – ( +12 / -1 ) – 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 5 years ago by JohnPollardHow-tos9 comments – viewed 42,566 times – ( +29 / -1 ) – 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 6 years ago by Antonio RamirezHow-tos15 comments – viewed 42,516 times – ( +27 / -1 ) – 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

Actions code reuse with CAction

Created 6 years ago by Antonio RamirezHow-tos13 comments – viewed 41,683 times – ( +36 / -1 ) – version 1.1
We all know how good 'gii' automates the code for us and we normally tend to be happy with what that tool offers at the beginning of our Yii learning curve. But as soon as you start working in larger and larger projects, you realize that its code is too repetitive to maintain and having a small pitfall in general actions means to go over and over through them to fix the issues.
tags: CAction, Tutorial

Creating a jQueryUI Sortable CGridView

Created 5 years ago by blindMoeHow-tos23 comments – viewed 41,510 times – ( +48 / -2 ) – version 1.1
I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 6 years ago by xrxHow-tos17 comments – viewed 40,769 times – ( +25 / -1 ) – 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.

How to use the official Yii installer for Composer (**DEPRECATED**)

Created 4 years ago by br0skHow-tos9 comments – viewed 40,068 times – ( +3 / -1 ) – version 1.1
This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

Integrating HybridAuth directly into Yii without an extension

Created 4 years ago by biz devHow-tos8 comments – viewed 39,384 times – ( +14 / -1 ) – version 1.1
This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

Elementary introduction to using jQuery ajax and the yii framework

Created 4 years ago by dhimesHow-tos4 comments – viewed 38,896 times – ( +7 / -1 ) – version 1.1
In doing internet searches trying to learn how to incorporated ajax into web pages generated by the yii framework I noticed that there seems to be a lot of confusion. I worry that too-clever hacks will be broken in upgrades of the framework.
tags: AJAX