PHP 클래스 Neos\FluidAdaptor\ViewHelpers\Uri\ResourceViewHelper

= Examples = (depending on current package) {f:uri.resource(path: 'gfx/SomeImage.png', package: 'DifferentPackage')} http://yourdomain.tld/_Resources/Static/DifferentPackage/gfx/SomeImage.png (depending on domain) {f:uri.resource(path: 'resource://DifferentPackage/Public/gfx/SomeImage.png')} http://yourdomain.tld/_Resources/Static/DifferentPackage/gfx/SomeImage.png (depending on domain) (depending on your resource object)
상속: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$i18nService Neos\Flow\I18n\Service
$resourceManager Neos\Flow\ResourceManagement\ResourceManager

공개 메소드들

메소드 설명
render ( string $path = null, string $package = null, PersistentResource $resource = null, boolean $localize = true ) : string Render the URI to the resource. The filename is used from child content.

메소드 상세

render() 공개 메소드

Render the URI to the resource. The filename is used from child content.
public render ( string $path = null, string $package = null, PersistentResource $resource = null, boolean $localize = true ) : string
$path string The location of the resource, can be either a path relative to the Public resource directory of the package or a resource://... URI
$package string Target package key. If not set, the current package key will be used
$resource Neos\Flow\ResourceManagement\PersistentResource If specified, this resource object is used instead of the path and package information
$localize boolean Whether resource localization should be attempted or not
리턴 string The absolute URI to the resource

프로퍼티 상세

$i18nService 보호되어 있는 프로퍼티

protected Service,Neos\Flow\I18n $i18nService
리턴 Neos\Flow\I18n\Service

$resourceManager 보호되어 있는 프로퍼티

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
리턴 Neos\Flow\ResourceManagement\ResourceManager