public function setJsSettings($key, $data, $weight = null)
    {
        $asset = array(
            'type' => 'js',
            'weight' => $weight,
            'key' => 'js_settings',
            'merge' => 'js_settings',
            'asset' => array($key => $data)
        );

        $this->asset->set($asset);
    }
public function setJsSettings($key, $data, $weight = null)
    {
        $asset = array(
            'type' => 'js',
            'weight' => $weight,
            'key' => 'js_settings',
            'merge' => 'js_settings',
            'asset' => array($key => $data)
        );

        $this->asset->set($asset);
    }
public function setJsSettings ( $ key , $ data , $ weight = null ) { $ asset = array ( 'type' => 'js' , 'weight' => $ weight , 'key' => 'js_settings' , 'merge' => 'js_settings' , 'asset' => array ( $ key => $ data ) ) ; $ this -> asset -> set ( $ asset ) ; }
Adds JSON string with JS settings
@param string $key
@param mixed $data
@param integer|null $weight
Adds JSON string with JS settings