private function createPath($dir, $path, $module, $theme = null)
    {
        if ($theme !== null) {
            return sprintf('%s/%s/%s/%s/%s', $path, self::TEMPLATE_PARAM_MODULES_DIR, $module, $dir, $theme);
        } else {
            return sprintf('%s/%s/%s/%s', $path, self::TEMPLATE_PARAM_MODULES_DIR, $module, $dir);
        }
    }
private function createPath($dir, $path, $module, $theme = null)
    {
        if ($theme !== null) {
            return sprintf('%s/%s/%s/%s/%s', $path, self::TEMPLATE_PARAM_MODULES_DIR, $module, $dir, $theme);
        } else {
            return sprintf('%s/%s/%s/%s', $path, self::TEMPLATE_PARAM_MODULES_DIR, $module, $dir);
        }
    }
private function createPath ( $ dir , $ path , $ module , $ theme = null ) { if ( $ theme !== null ) { return sprintf ( '%s/%s/%s/%s/%s' , $ path , self :: TEMPLATE_PARAM_MODULES_DIR , $ module , $ dir , $ theme ) ; } else { return sprintf ( '%s/%s/%s/%s' , $ path , self :: TEMPLATE_PARAM_MODULES_DIR , $ module , $ dir ) ; } }
Creates path to view template

@param string $dir Base directory when assets are stored
@param string $path
@param string $module
@param string $theme
@return string
Creates path to view template