Hi guys
I'm retro fitting a spaghetti code application to OOP. I'm doing it a
piece at a time (as I work on a section of the website I take some
extra time to migrate it to OOP). Because I'm slowly doing it I can't
use a framework until everything has been migrated (also because I
don't want to de-stablise the app too much).
I'm taking care to seperate my MODEL from the VIEW / CONTROLLER so
that when I do bring in a framework it will be easy to plug it in. For
now I have to retro fit the spaghetti code to use the MODEL so I'm
attempting a very basic "framework" where by I load all the classes /
objects into the application scope when the app starts e.g.
application.beanBaket = CreateObject("component","app.beans.basket").
This works fine for objects/classes which don't store data however
with say for example a "basket" bean where you need to store data per
session I need to be careful not to update the application version so
would it be best to do something like session.basket = Duplicate
(application.beanBasket)?
If anyone has tips on retro fitting that would be great!
Cheers
Matthew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---