custom CHtml helpers

how do i create custom helpers that extend the default CHtml helpers?

create a class that extends CHtml and put it in your protected/components folder

you can also create a subfolder for helpers if you wish to do so.

You should, however be aware that true inheritance is not possible with PHP < 5.3 since all versions prior to 5.3 do not support late static binding and all the methods in the CHtml helper are static methods.

hope that helps

yes it definitely helps :)

the only thing i cant figure out is how to put them in separate folders.

says class not found.