Omeka
What’s new in Omeka
What’s new in Omeka 2.2
What’s new in Omeka 2.1
What’s new in Omeka 2.0
Tutorials
Plugin Basics
Essential Classes in Omeka
The Admin Theme
Public Themes
File Display
International Locale Support
Extending Omeka and the Standard Plugins
User-Submitted Recipes
Reference
Global (Theming) Functions
Hooks
Filters
Models
View Helpers
Controllers
Packages
Class Library by Path
Omeka REST API
Omeka
Docs
»
Reference
»
Packages
»
Global Functions
»
View-related functions
»
Asset-related functions
»
src
— Get a URL for a given local file.
Edit on GitHub
src
— Get a URL for a given local file.
¶
Asset-related functions
Summary
¶
src
(
$file
,
$dir = null
,
$ext = null
)
¶
Get a URL for a given local file.
Parameters:
$file
(
string
) – The filename.
$dir
(
string|null
) – The file’s directory.
$ext
(
string
) – The file’s extension.
Returns:
string
Usage
¶
Examples
¶
See Also
¶
Read the Docs
v: stable-2.2
Versions
latest
stable-2.2
stable-2.1
stable-2.0
Downloads
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.