On Feb 4, 2008, at 10:51 AM, Josep wrote:
I'm programming a stack to help to create webpages with products
using the
one free shopping cart processor. I like to share some functions to
access
databases. How is the best way? Use libraries, frontscript,... How I
must
organize my project at stacks level.
s_main.rev <-- Main Stack
s_add_product <-- Substack of s_main
s_add_family <-- Substack of s_main
s_add_customer <-- Substack of s_main
s_lib_functions.rev <-- Stack with functions
Is a good organization?
Your design looks fine. I prefer the library approach which means you
would "start using" the s_lib_functions.rev stack so it is available
to all scripts. Libraries usually make the most sense for general
handlers you want to be globally available.
Some other way to do the same?
You could make s_lib_functions.rev a substack of s_main.rev. If you
have more than one library stack you could also create a
"libraries.rev" stack on disk and make s_lib_functions a substack of
the library stack. In the end you would get the same result though.
Regards,
--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com - www.screensteps.com
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution