1.

What Are Yii Helpers?

Answer»

Helpers are static classes in Yii that simplify common coding tasks, such as string or array manipulations, HTML code GENERATION, and so on. In Yii all helpers are KEPT under yii helpers NAMESPACE.

You use a HELPER class in Yii by directly calling one of its static methods, like the following:

use yii helpers Html;

echo Html::encode('TEST > test');

Helpers are static classes in Yii that simplify common coding tasks, such as string or array manipulations, HTML code generation, and so on. In Yii all helpers are kept under yii helpers namespace.

You use a helper class in Yii by directly calling one of its static methods, like the following:

use yii helpers Html;

echo Html::encode('Test > test');



Discussion

No Comment Found