Action view helper?

Is there something like a action view helper inside Yii ?


The short answer is no. Zend represents a view as an object while in Yii, it is merely a PHP file. In Zend view, $this refers to the view object, in Yii it refers to the controller calling the render() method. As a result, Yii relies on static class methods (such as those in CHtml) in its views.

;) Ah ok thanks… too bad it’s kinda a nice feature ^^

you can simulate it by creating class with static methods, which you can call in your template