Performance Issue While Using Chtml Functions

Hi,

I have faced the performance problem while using the CHTML functions like labekEx() to display the values

<?php echo $form->labelEx($mymodel,Yii::t($temptextg,‘mycolumnid’)); ?>

<?php echo $form->textField($mymodel,‘mycolumnid’); ?>

<?php echo $form->error($mymodel,‘mycolumnid’); ?>

Try to have 25 lables and 25 fields in the form and test it.

If i was using the normal label and text field, then the loading time is very fast.

Any idea how to improve the performance?

What do you call a performance problem? Details? How did you measure it? Was there anything else rendered other than the form? I’ve rendered more than 25 in the past and it was lightning fast!

Hi,

Thanks for your reply,

I was unable to reproduce the problem, will reply you with example when the same issue reaccoured