The third argument can also be 'location', in which case a :php:class:PathFinder_Location
object will be returned.
If file is not found anywhere, then :php:class:Exception_PathFinder is thrown
unless you set $throws_exception to false, and then method would return null.
public locate ( string $type, string $filename = '', string $return = 'relative', $throws_exception = true ) : string | object | array | ||
$type | string | Type of resource to search surch as "php" |
$filename | string | Name of the file to search for |
$return | string | 'relative','url','path' or 'location' |
Résultat | string | object | array |