Подключение от ZF1 заменяем на ZF2

Исправление несоответствия подключения от ZF1 и самого ZF2.
This commit is contained in:
Exile 2014-11-25 00:47:30 +03:00
commit 449b519f72
3 changed files with 3 additions and 99 deletions

View file

@ -20,8 +20,8 @@ header('X-Frame-Options: SAMEORIGIN');
require(BB_ROOT . 'library/config.php');
// Load Zend Framework
require(CLASS_DIR . 'zendLoader.php');
ZendLoader::getInstance()->setupAutoloader(BB_ROOT . '/library');
require_once(BB_ROOT . 'library/Zend/Loader/AutoloaderFactory.php');
Zend\Loader\AutoloaderFactory::factory(array());
$server_protocol = ($bb_cfg['cookie_secure']) ? 'https://' : 'http://';
$server_port = (in_array($bb_cfg['server_port'], array(80, 443))) ? '' : ':' . $bb_cfg['server_port'];