oikram — 2010-03-23T05:27:42-04:00 — #1
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,
kyberfabrikken — 2010-03-23T09:06:27-04:00 — #2
Just install the entire framework. As long as you don't include anything, it's not a problem (resource/performance wise) for your application.
risoknop — 2010-03-23T13:12:26-04:00 — #3
Zend/Mail folder should be enough.
oikram — 2010-03-23T13:28:03-04:00 — #4
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? :shifty:
risoknop — 2010-03-23T13:41:14-04:00 — #5
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.
anthonysterling — 2010-03-23T13:54:48-04:00 — #6
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.
risoknop — 2010-03-23T14:32:43-04:00 — #7
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 :)).
oikram — 2010-03-23T15:55:09-04:00 — #8
So all framework will go and we will include only what's necessary.
No bootstrap on anything else needed I suppose?
oikram — 2010-03-26T05:27:44-04:00 — #9
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.
Thanks you all for the previous replies,