CAction provides a way to divide a complex controller into smaller actions in separate class files. XRenderAction extends CAction to enable direct access to controller methods. So you can move code from action methods in a controller to action class files without changes and blow up the code.
There is a generator for classes which extend XRenderAction.
The sample showing you the usage of the class together with controllers from the Yii Blog demo.
protected/components
Total 3 comments
Thanks for this useful extension. Came right in the time I need it! :)
Thank you.
Very clever; good way to organize code when actions take quite a lot of space too...
Leave a comment
Please login to leave your comment.