Wiki

Articles tagged with "caction", sorted by date (updated)X
Displaying 1-4 of 4 result(s).

How to use a Widget as an Action Provider

Updated 2 years ago by Antonio RamirezHow-tos14 comments – viewed 32,614 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

Using events with CAction classes

Updated 3 years ago by 张 迪Tips0 comments – viewed 11,331 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.

A simple action for XUpload extension

Updated 3 years ago by tydeas_drTips1 comment – viewed 13,278 times – ( +3 ) – version 1.1
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
tags: tips, xupload, caction

Actions code reuse with CAction

Updated 3 years ago by Antonio RamirezHow-tos13 comments – viewed 31,280 times – ( +36 ) – 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