ZF2 installation on shared hosting server

后端 未结 2 1105
长发绾君心
长发绾君心 2020-12-09 00:18

I am trying to install ZF2 on my shared hosting server. I followed these steps:

  1. Downloaded and extracted Zend Framework 2 on my computer.

  2. Cr

2条回答
  •  旧时难觅i
    2020-12-09 01:10

    If you're trying to just access one of the classes (i.e. Mail) then you should note that in ZF2 the library structure changed to follow PSR-0. So Zend/Mail.php doesn't exist and the class name is not Zend_Mail. To access the mail class you need to include Zend/Mail/Mail.php and the class name is just Mail.

    If you're trying to use the full MVC stack, then you should do what Raj suggested.

    Also, if you want to see what the error is, you might want to include this at the top of your file:

    error_reporting(E_ALL);
    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL);
    

提交回复
热议问题