public function registerAsset($context, $asset)
    {
        return $this->resolveAndCall($asset, 'register', [
            isset($context['this']) ? $context['this'] : null,
        ]);
    }
public function registerAsset($context, $asset)
    {
        return $this->resolveAndCall($asset, 'register', [
            isset($context['this']) ? $context['this'] : null,
        ]);
    }
public function registerAsset ( $ context , $ asset ) { return $ this -> resolveAndCall ( $ asset , 'register' , [ isset ( $ context [ 'this' ] ) ? $ context [ 'this' ] : null , ] ) ; }
Function for registering an asset

```
{{ use('yii/web/JqueryAsset') }}
{{ register_jquery_asset() }}
```

@param array $context context information
@param string $asset asset name
@return mixed
Function for registering an asset