
Originally Posted by
G.Schuster
I'd follow a simple principle: define a standard and only specify special cases when really needed.
E.g. "standard.email.address" that all forms could fall back to if there's no "specialform.email.address" defined.
When in development, only specify "standard.email.address" and you're done.
Nice. And when we would have the need for more emails then just the standard one, what should we do?

Originally Posted by
G.Schuster
As on how to implement - I'd create an application resource, that handle's the address selection,
e.g. "$resource->getAddressForForm('formName').
I more or less got your example, what is an application resource?

Originally Posted by
G.Schuster
It lokks at the current config if there's a formName.email.address and returns that or the standard.
I still need to grasp the application resource meaning, however, I'm not yet getting, if I need to inspect config (and if that is this "application.ini") how can we inspect there?

Originally Posted by
G.Schuster
BTW, development shouldn't extend production - it shpuld be the other way round, as in the development process.
Are you talking about this?
PHP Code:
[development : production]
Zend tool himself has created this order.
This indicates that the development stage will inherit
any configuration variables( they are not variables... hm... things
) defined within the production stage.
Like:
PHP Code:
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
Should I place those on:
[development] and then create a [development : production] ?
We must consider that Zend Tool defaults behaviour should not be taken as a no sense choice, so a reason must exist for it, to do this differently, what could that reason be?
Thanks a lot for your reply,
Márcio
Bookmarks