public function prepareAssets($assets_directory, \Smarty_Internal_Template $smarty)
    {
        // Be sure to use the proper path separator
        if (DS != '/') {
            $assets_directory = str_replace('/', DS, $assets_directory);
        }

        // Set the current template assets directory
        self::$assetsDirectory = $assets_directory;

        /** @var SmartyParser $smartyParser */
        $smartyParser = $smarty->smarty;

        $this->prepareTemplateAssets($smartyParser->getTemplateDefinition(), $assets_directory, $smartyParser);
    }
public function prepareAssets($assets_directory, \Smarty_Internal_Template $smarty)
    {
        // Be sure to use the proper path separator
        if (DS != '/') {
            $assets_directory = str_replace('/', DS, $assets_directory);
        }

        // Set the current template assets directory
        self::$assetsDirectory = $assets_directory;

        /** @var SmartyParser $smartyParser */
        $smartyParser = $smarty->smarty;

        $this->prepareTemplateAssets($smartyParser->getTemplateDefinition(), $assets_directory, $smartyParser);
    }
public function prepareAssets ( $ assets_directory , \ Smarty_Internal_Template $ smarty ) { // Be sure to use the proper path separator if ( DS != '/' ) { $ assets_directory = str_replace ( '/' , DS , $ assets_directory ) ; } // Set the current template assets directory self :: $ assetsDirectory = $ assets_directory ; /** @var SmartyParser $smartyParser */ $ smartyParser = $ smarty -> smarty ; $ this -> prepareTemplateAssets ( $ smartyParser -> getTemplateDefinition ( ) , $ assets_directory , $ smartyParser ) ; }
Prepare current template assets

@param string $assets_directory the assets directory in the template
@param \Smarty_Internal_Template $smarty the smarty parser
Prepare current template assets