$config→path()
Get disk path for requested resource or module
$config->path('something') is a shorter alternative for $config->paths->get('something').
Example
// Get the PW installation root disk path
$path = $config->path('root');
// Same thing, using alternate syntax
$path = $config->paths->root;Usage
$string = $config->path(string $for);Arguments
| Name | Type(s) | Description |
|---|---|---|
$for | string | Predefined ProcessWire paths property or module class name |
Return value
null string
$config methods and properties
API reference based on ProcessWire core version 3.0.252