Zend Framework 1.8. Zend_Loader::Zend_Loader::registerAutoload is deprecated
![]()
1 2 | Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /usr/share/php/Zend/Loader.php on line 207 Notice: Zend_Loader::Zend_Loader::autoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /usr/share/php/Zend/Loader.php on line 186 |
A to pierwsze ostrzeżenie które pojawiło sie zaraz po załadowaniu nowego framework’a. Jak już pisałem w poprzednim newsie, w większości wypadków wystarczy podmiana kodu:
1 2 3 4 5 6 7 | // Jeżeli masz: require_once 'Zend/Loader.php'; Zend_Loader::registerAutoload(); // W większości wypadków wystarczy zamiana na: require_once 'Zend/Loader/Autoloader.php'; Zend_Loader_Autoloader::getInstance(); |
Po więcej wiedzy odsyłam ponownie na Devzone Zenda’ oraz do Dokumentacji
Maj 18th, 2011 at 12:23
Great info thanks! What language is close to php as far as functionality and ease of use?