Google News
logo
Yii framework - Interview Questions
What are Yii Helpers?
Helpers are static classes in Yii that simplify common coding tasks, such as string or array manipulations, HTML code generation, etc. In Yii, all helpers are kept under the yii\helpers namespace.
 
You use a helper class in Yii by directly calling one of its static methods, as the following :
use yii\helpers\Html;  
echo Html::encode('Test > test'); 
Advertisement