How to Use Zend Library without installation of Zend Framework

前端 未结 3 721
北恋
北恋 2021-01-02 02:14

How to use zend library without using zend framework installation?

I am trying to use zend library(Mail and Mime) without zend framework installation, its not return

3条回答
  •  悲&欢浪女
    2021-01-02 02:31

    Download Zend Framework and put it into a folder accessible by your PHP. Then either do

    include '/path/to/folder/containing/Zend/lib/Zend/Mail.php';
    include '/path/to/folder/containing/Zend/lib/Zend/Mime.php';
    
    $mailer = new Zend_Mail;
    

    Or - better and more conventient - setup your autoloader and/or include path so PHP can find the classes directly, without you having to include them.

    Also see

    • the requirements appendix for a detailed list of requirements for Zend Framework.

提交回复
热议问题