Param 'commentNeedApproval' on the Blog tutorial

Hi guys,

On the Blog tutorial, Creating and Displaying comments chapter. In Post model, addComment function there is code like below

[font=“Courier New”]if(Yii::app()->params[‘commentNeedApproval’])[/font]

my question is, what is that param? is it from the create comment form?

Thanks.

No it’s defined via config file. Check out this wiki: http://www.yiiframework.com/wiki/126/setting-and-getting-systemwide-static-parameters/