:
if (!defined('APPLICATION_PATH')) {
define('APPLICATION_PATH', realpath(getcwd() . '/../application'));
}
set_include_path(get_include_path() . PATH_SEPARATOR . APPLICATION_PATH . PATH_SEPARATOR . realpath(APPLICATION_PATH . '/../library'));
include_once 'Loader.php';
if (!class_exists('Loader')) {
die('Could not load class loader.');
}
spl_autoload_register('Loader::autoload');
. include_path: , , , , . , .
.. /application/
, /library/
. . , , . ( ), !
Update
, , include_path
(, Windows dev , : SQL Server, Ruby ..) , , .
, , - include_path
script php.ini.
, . , . , .
, , ? , ( ), . , . , . , , require
s.