SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Wizard
    Join Date
    Feb 2009
    Posts
    1,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Zend_Mail - standalone instalation?

    Hello all,

    I've post this same question on Zend mailing-list but, no success, perhaps I'm telling some nonsense but, if I am, please at least let me know.

    Let's say that for a specific project, we want to have ONLY the capacity to send html e-mails with attachement. No MVC, nothing.

    What should we grab, from the framework library, in order to make it work? What are the "minimum requirements for this?".

    I have two books on Zend in my hands, I've search the internet, and I can clearly find: "Zend framework is modular", "You can use Zend components without rely on other things", but I can't find any example about how/what should we install/prepare in order to have one of those single components to work, and only those.


    Thanks in advance,
    Márcio

  2. #2
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just install the entire framework. As long as you don't include anything, it's not a problem (resource/performance wise) for your application.

  3. #3
    SitePoint Guru risoknop's Avatar
    Join Date
    Feb 2008
    Location
    end($world)
    Posts
    834
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Zend/Mail folder should be enough.

  4. #4
    SitePoint Wizard
    Join Date
    Feb 2009
    Posts
    1,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks,

    I will give it a try and use only the zend mail and give an include only.
    I will post back the results.


    Why can't I find this info anywhere?
    Normally, this is due to the fact that I'm trying to do some "original" stuff.
    And, normally as well, I miss something important each time I try to create an "original" thing.

    Any guesses?

  5. #5
    SitePoint Guru risoknop's Avatar
    Join Date
    Feb 2008
    Location
    end($world)
    Posts
    834
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Zend/Mail folder and Zend/Mail.php file, to be specific.

    Zend Framework is loosely coupled and you can use any of its components independently. The directory structure is quite clear, if you want to use just Zend_Validate, Zend/Validate.php and the Zend/Validate.php folder are enough, if you want to use just Zend_Cache, Zend/Cache.php and the Zend/Cache folder are enough and so on.

  6. #6
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by risoknop View Post
    Zend/Mail folder and Zend/Mail.php file, to be specific.

    Zend Framework is loosely coupled and you can use any of its components independently. The directory structure is quite clear, if you want to use just Zend_Validate, Zend/Validate.php and the Zend/Validate.php folder are enough, if you want to use just Zend_Cache, Zend/Cache.php and the Zend/Cache folder are enough and so on.
    Not strictly true, there are occasions where those require_once calls come back and bite you in the proverbial.

    Best bet, IMHO, do as kyberfabrikken states and drop the entire library into your application. You have nothing to lose doing so.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  7. #7
    SitePoint Guru risoknop's Avatar
    Join Date
    Feb 2008
    Location
    end($world)
    Posts
    834
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AnthonySterling View Post
    Not strictly true, there are occasions where those require_once calls come back and bite you in the proverbial.

    Best bet, IMHO, do as kyberfabrikken states and drop the entire library into your application. You have nothing to lose doing so.
    Yes. I guess there might be some cases where there are other required files, never came across any such case though (but I usually just use the whole framework as well ).

  8. #8
    SitePoint Wizard
    Join Date
    Feb 2009
    Posts
    1,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So all framework will go and we will include only what's necessary.
    No bootstrap on anything else needed I suppose?


    Best,
    Márcio

  9. #9
    SitePoint Wizard
    Join Date
    Feb 2009
    Posts
    1,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In case someone is wondering: bootstrapping is the process we use to start for application initialization and where we configure and startup the MVC process.

    So, no need for that in a modular use of the framework.

    Done.

    Thanks you all for the previous replies,
    Márcio


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •