Articles tagged with "controller"X
Displaying 1-5 of 5 result(s).

Add model validator in Controller

Created 2 years ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 17,016 times – ( +1 / -2 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way

Where to implement knowledge about the addresses of the controller?

Created 3 years ago by Petr.GrishinTutorials0 comments – viewed 3,814 times – ( +1 / -1 ) – version 1.1
Knowledge is necessary to determine the address of the controller in a single layer system. This allows you to quickly search and painlessly produce refactoring controllers and their addresses.

Take more control of CGridview and model searching (related model or another controller)

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos5 comments – viewed 31,711 times – ( +5 / -1 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.


Created 4 years ago by ezekielnoobHow-tos6 comments – viewed 13,713 times – ( +5 / -2 )
Right now we can use widgets + action provider like in this tutorial: How to use a Widget as an Action Provider

Using events with CAction classes

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