a tiny mvc framework for php using php-activerecord
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

autoload is now prepended by default and added some constants for configuring the autoloader

define('PHP_ACTIVERECORD_AUTOLOAD_PREPEND',false) # if you want the autoloader appended instead of prepended
define('PHP_ACTIVERECORD_AUTOLOAD_DISABLE',true) # disables the php-activerecord autoloader

Kien La 56b5081f 454e5c6f

+5 -1
+5 -1
lib/php-activerecord/ActiveRecord.php
··· 4 4 5 5 define('PHP_ACTIVERECORD_VERSION_ID','1.0'); 6 6 7 + if (!defined('PHP_ACTIVERECORD_AUTOLOAD_PREPEND')) 8 + define('PHP_ACTIVERECORD_AUTOLOAD_PREPEND',true); 9 + 7 10 require 'lib/Singleton.php'; 8 11 require 'lib/Config.php'; 9 12 require 'lib/Utils.php'; ··· 19 22 require 'lib/Exceptions.php'; 20 23 require 'lib/Cache.php'; 21 24 22 - spl_autoload_register('activerecord_autoload'); 25 + if (!defined('PHP_ACTIVERECORD_AUTOLOAD_DISABLE')) 26 + spl_autoload_register('activerecord_autoload',false,PHP_ACTIVERECORD_AUTOLOAD_PREPEND); 23 27 24 28 function activerecord_autoload($class_name) 25 29 {