public function renderAssets()
    {
        // Retrieve path to Resources and shortname's class
        $class = $this->getClass();
        $path = $class['resources'].S.'assets'.S;

        // Get assets
        $script = $this->getModel()->getScript();
        $style = $this->getModel()->getStyle();

        $assets = [];

        // Do nothing if all empty
        if (empty($script) && empty($style)) {
            return $assets;
        }

        // Scripts
        if (!empty($script)) {
            $assets[$script] = $path.$script;
        }

        // Styles
        if (!empty($style)) {
            $assets[$style] = $path.$style;
        }

        return $assets;
    }
public function renderAssets()
    {
        // Retrieve path to Resources and shortname's class
        $class = $this->getClass();
        $path = $class['resources'].S.'assets'.S;

        // Get assets
        $script = $this->getModel()->getScript();
        $style = $this->getModel()->getStyle();

        $assets = [];

        // Do nothing if all empty
        if (empty($script) && empty($style)) {
            return $assets;
        }

        // Scripts
        if (!empty($script)) {
            $assets[$script] = $path.$script;
        }

        // Styles
        if (!empty($style)) {
            $assets[$style] = $path.$style;
        }

        return $assets;
    }
public function renderAssets ( ) { // Retrieve path to Resources and shortname's class $ class = $ this -> getClass ( ) ; $ path = $ class [ 'resources' ] . S . 'assets' . S ; // Get assets $ script = $ this -> getModel ( ) -> getScript ( ) ; $ style = $ this -> getModel ( ) -> getStyle ( ) ; $ assets = [ ] ; // Do nothing if all empty if ( empty ( $ script ) && empty ( $ style ) ) { return $ assets ; } // Scripts if ( ! empty ( $ script ) ) { $ assets [ $ script ] = $ path . $ script ; } // Styles if ( ! empty ( $ style ) ) { $ assets [ $ style ] = $ path . $ style ; } return $ assets ; }
Render assets' component.

@return array $assets
Render assets component .