Yii 1.1: render-action

Class XRenderAction

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.



  • Yii 1.3 or above


  • Extract the release file under protected/components

Change Log

September 9, 2010

  • Initial release.

Total 3 comments

#2305 report it
Trejder at 2010/12/10 05:47am
Me 2! :)

Thanks for this useful extension. Came right in the time I need it! :)

#2192 report it
rainyjune at 2010/11/23 01:21am

Thank you.

#1924 report it
Antonio Ramirez at 2010/10/16 02:24pm

Very clever; good way to organize code when actions take quite a lot of space too...

Leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: volkmar
  • Category: Others
  • Votes: +4
  • Downloaded: 1,025 times
  • Created on: Sep 9, 2010
  • Last updated: Apr 17, 2011