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

How to use a Widget as an Action Provider

Created 6 years ago by Antonio RamirezHow-tos15 comments – viewed 42,146 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

Actions code reuse with CAction

Created 5 years ago by Antonio RamirezHow-tos13 comments – viewed 41,242 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

A simple action for XUpload extension

Created 5 years ago by tydeas_drTips1 comment – viewed 15,642 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

Using events with CAction classes

Created 5 years ago by Antonio RamirezTips0 comments – viewed 14,753 times – ( +10 ) – 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.