public function includeMedia()
    {
        $document = $this->getService('anahita:document');
        $asset = $this->getService('com:base.template.asset');

        $url = $asset->getURL("com_{$this->getIdentifier()->package}/js/{$this->getIdentifier()->package}.js");

        if ($url) {
            $document->addScript($url);
        }

        $url = $asset->getURL("com_{$this->getIdentifier()->package}/css/{$this->getIdentifier()->package}.css");

        if ($url) {
            $document->addStyleSheet($url);
        }
    }
public function includeMedia()
    {
        $document = $this->getService('anahita:document');
        $asset = $this->getService('com:base.template.asset');

        $url = $asset->getURL("com_{$this->getIdentifier()->package}/js/{$this->getIdentifier()->package}.js");

        if ($url) {
            $document->addScript($url);
        }

        $url = $asset->getURL("com_{$this->getIdentifier()->package}/css/{$this->getIdentifier()->package}.css");

        if ($url) {
            $document->addStyleSheet($url);
        }
    }
public function includeMedia ( ) { $ document = $ this -> getService ( 'anahita:document' ) ; $ asset = $ this -> getService ( 'com:base.template.asset' ) ; $ url = $ asset -> getURL ( "com_{$this->getIdentifier()->package}/js/{$this->getIdentifier()->package}.js" ) ; if ( $ url ) { $ document -> addScript ( $ url ) ; } $ url = $ asset -> getURL ( "com_{$this->getIdentifier()->package}/css/{$this->getIdentifier()->package}.css" ) ; if ( $ url ) { $ document -> addStyleSheet ( $ url ) ; } }
Include Media automatically.

This method automatically imports the js/css assets of the app

@return mixed
Include Media automatically .