locate() public méthode

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
Exemple #1
0
 /**
  * Return full system path to specified resource.
  *
  * @param string $type
  * @param string $filename
  *
  * @return string|object|array
  */
 public function locatePath($type, $filename = '')
 {
     return $this->pathfinder->locate($type, $filename, 'path');
 }