0

Being novice to Zend framework and after reading almost all the possible answers already posted, It did not work. I want to set up an instance of Zend Framework auto-loader and Zend_Http_Client class. code is as:

require_once 'Zend/Loader.php';
zend_autoload::loadClass('Zend_Http_Client');

I see also that 'Zend/Loader.php' is deprecated in the previous versions and is as now: 'Zend/Loader/Autoloader.php'; Then I can not locate the class 'zend_autoload'. Any guidance would be helpful.

Josephine
  • 21
  • 5
  • What have you tried? Any errors? Did you read the docs as they are since ZF3 on [zendframework.github.io](http://zendframework.github.io/) ? Have you had a look at the [Skeleton Application](https://github.com/zendframework/ZendSkeletonApplication)? If you grab the docs and work along in the Skeleton Application throughout the [Tutorials](https://docs.zendframework.com/tutorials/), you should understand the basics :) – rkeet Mar 11 '19 at 13:01
  • @rkeet Yes, I did read the documentation. Wrote here only when it did not make sense. This is the error I am coming across: `Fatal error: Uncaught Error: Class 'zend_autoload' not found in` I hope your little explanation can help me get to track. – Josephine Mar 11 '19 at 14:03
  • Can I ask which editor you're using? Your IDE should've given you a notice that a class in ZF does not exist by that name. I think the class you're looking for is `\Zend\Loader\StandardAutoloader`. – rkeet Mar 11 '19 at 14:24
  • @ I am using Notepad ++ – Josephine Mar 11 '19 at 14:35
  • 1
    I highly recommend you give [PhpStorm](https://www.jetbrains.com/phpstorm/) a try. ^^ Highly! ^^ – rkeet Mar 11 '19 at 14:55

0 Answers0