I am making a dynamic menu where the values come from the database. This menu will be displayed using the portlets.
My question is if I should use the CHtml for the various elements, eg. ul, li, a… through the methods CHtml::tag(), CHtml::openTag(), CHtml::link() etc… to build this menu?
Since I am using two foreach (parent and child) to display the values that come from two related tables, using CHtml will lower the performance?
The caching is being done, my only doubt was if I should use the CHtml to the elements and I’ll probably use. As you said, the performance is not so bad and the caching will lead for a good performance.