protected function getAsset($assetData)
    {
        try {
            $Comet = \CometPHP\Comet::getInstance();
        } catch (\CometPHP\Exceptions\CometNotBooted $e) {
            return null;
        }

        if (! is_array($assetData)) {
            $assetData = [$assetData];
        }

        $asset = $Comet['template']->getFunction('asset')->call(
            $this->template,
            $assetData
        );

        return $asset;
    }
protected function getAsset($assetData)
    {
        try {
            $Comet = \CometPHP\Comet::getInstance();
        } catch (\CometPHP\Exceptions\CometNotBooted $e) {
            return null;
        }

        if (! is_array($assetData)) {
            $assetData = [$assetData];
        }

        $asset = $Comet['template']->getFunction('asset')->call(
            $this->template,
            $assetData
        );

        return $asset;
    }
protected function getAsset ( $ assetData ) { try { $ Comet = \ CometPHP \ Comet :: getInstance ( ) ; } catch ( \ CometPHP \ Exceptions \ CometNotBooted $ e ) { return null ; } if ( ! is_array ( $ assetData ) ) { $ assetData = [ $ assetData ] ; } $ asset = $ Comet [ 'template' ] -> getFunction ( 'asset' ) -> call ( $ this -> template , $ assetData ) ; return $ asset ; }
base function to return assets

@param   mixed   asset path data received from the image method
@return  string  url to pass to img or css
base function to return assets