url()
Generate a URL with the application base path prepended.
url([string $path = '/' ]) : string
Use this for all internal links to ensure they work correctly when the application is installed in a subdirectory.
Parameters
- $path : string = '/'
-
The path to generate URL for (should start with /)
Tags
Return values
string —The full URL path with base path prepended