Google News
logo
Yii framework - Interview Questions
How to customizing Helper Classes in the Yii framework?
To customize a core helper class, we should create a new class extending from the helper base class. For example :
< ?php  
namespace yii\helpers;  
  
class ArrayHelper extends BaseArrayHelper  
{  
    public static function merge($x, $y)  
    {  
        // your custom implementation  
    }  
}​
 
Advertisement