src/Loader/File/Script.php
public function load ($path, $data = array())
		{
			extract($data);
			$fullPath = $this->transformPath($path);

			if (is_file($fullPath)) {
				return include($fullPath);
			} else {
				throw new NonexistentFileException('Script not found: ' . $fullPath);
			}
		}
public function load ($path, $data = array())
		{
			extract($data);
			$fullPath = $this->transformPath($path);

			if (is_file($fullPath)) {
				return include($fullPath);
			} else {
				throw new NonexistentFileException('Script not found: ' . $fullPath);
			}
		}
public function load ( $ path , $ data = array ( ) ) { extract ( $ data ) ; $ fullPath = $ this -> transformPath ( $ path ) ; if ( is_file ( $ fullPath ) ) { return include ( $ fullPath ) ; } else { throw new NonexistentFileException ( 'Script not found: ' . $ fullPath ) ; } }
Includes a PHP file and returns any result returned by the file.

@api

@param string $path Path to file. Beware that this is not an absolute path if you set the basePath or suffix in the constructor.
@param array  $data An associative array of variables to be injected into the file.

@return mixed
@throws NonexistentFileException
Includes a PHP file and returns any result returned by the file .