src/Common/Service/Asset.php
protected function loadNails($sAsset, $sForceType)
    {
        $sType = $this->determineType($sAsset, $sForceType);

        switch ($sType) {

            case 'CSS':

                $this->aCss['NAILS-' . $sAsset] = NAILS_ASSETS_URL . $this->sCssDir . $sAsset;
                break;

            case 'JS':

                $this->aJs['NAILS-' . $sAsset] = NAILS_ASSETS_URL . $this->sJsDir . $sAsset;
                break;
        }
    }
protected function loadNails($sAsset, $sForceType)
    {
        $sType = $this->determineType($sAsset, $sForceType);

        switch ($sType) {

            case 'CSS':

                $this->aCss['NAILS-' . $sAsset] = NAILS_ASSETS_URL . $this->sCssDir . $sAsset;
                break;

            case 'JS':

                $this->aJs['NAILS-' . $sAsset] = NAILS_ASSETS_URL . $this->sJsDir . $sAsset;
                break;
        }
    }
protected function loadNails ( $ sAsset , $ sForceType ) { $ sType = $ this -> determineType ( $ sAsset , $ sForceType ) ; switch ( $ sType ) { case 'CSS' : $ this -> aCss [ 'NAILS-' . $ sAsset ] = NAILS_ASSETS_URL . $ this -> sCssDir . $ sAsset ; break ; case 'JS' : $ this -> aJs [ 'NAILS-' . $ sAsset ] = NAILS_ASSETS_URL . $ this -> sJsDir . $ sAsset ; break ; } }
Loads an asset from the Nails asset module

@param  string $sAsset     The asset to load
@param  string $sForceType Force a particular type of asset (i.e. JS or CSS)

@return void
Loads an asset from the Nails asset module