Wiki

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

Add model validator in Controller

Created about a month ago by KonApazTips4 comments – viewed 1,965 times – ( +1 / -1 ) – 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 6 months ago by Petr.GrishinTutorials0 comments – viewed 1,658 times – ( +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 about a year ago by KonApazHow-tos5 comments – viewed 18,986 times – ( +5 ) – version 1.1
Suppose you have an Application in Yii that manages hotels each one has many customers.

Yii HMVC

Created about a year ago by ezekielnoobHow-tos6 comments – viewed 7,870 times – ( +5 / -1 )
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 3 years ago by Antonio RamirezTips0 comments – viewed 11,337 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.