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.
Documentation ¶
Requirements ¶
- Yii 1.3 or above
Installation ¶
- Extract the release file under
protected/components
Change Log ¶
September 9, 2010 ¶
- Initial release.
thanks
Very clever; good way to organize code when actions take quite a lot of space too...
Thanks
Thank you.
Me 2! :)
Thanks for this useful extension. Came right in the time I need it! :)
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.