$config->path() method

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

NameType(s)Description
forstring

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.155

Twitter updates

  • ProcessWire 3.0.156 core updates— More
    15 May 2020
  • This post covers a few of the bigger updates in ProcessWire 3.0.154+3.0.155. This includes new live replacement of text in core and modules, a new method for creating canonical URLs, and some major upgrades to our input->urlSegment() method! More
    24 April 2020
  • A brief look at what's new in ProcessWire 3.0.154 in this forum post: More
    17 April 2020

Latest news

  • ProcessWire Weekly #314
    In the 314th issue of ProcessWire Weekly we're going to cover the latest core updates, check out a new module called Fieldtype Color Options, and more. Read on!
    Weekly.pw / 16 May 2020
  • ProcessWire 3.0.154 and 3.0.155 core updates
    This post covers a few of the bigger updates in ProcessWire 3.0.154 and 3.0.155 on the dev branch. This includes a new function for live replacement of text in core and modules, a new method for creating canonical URLs, and some major upgrades to our $input->urlSegment() method that I think you’ll like!
    Blog / 24 April 2020
  • Subscribe to weekly ProcessWire news

“ProcessWire is like a breath of fresh air. So powerful yet simple to build with and customise, and web editors love it too.” —Margaret Chatwin, Web developer