Incremental migration from legacy to new code base...
Posted: Thu Sep 01, 2005 9:18 pm
My attempts to create a FrontController for my new architecture that falls back to the legacy scripts if there is no handler registered is hitting multiple snags -- horrendous complications in the FrontController, problems hooking up the FrontController to apache, etc.
I'm tempted to completely "separate" the two code bases. Give the new code a custom extension and use AddHandler, etc to register the FrontController's new code, while allowing regular apache/filesystem dispatch to the legacy code. However that still has problems -- needing to change legacy code to point to the new extensions as those actions are written, etc.
Plus I currently make somewhat extensive use of virtual directories (ForceType handlers) and plan to move more of the application to a virtual directory (ie decoupling URLs from the file system), however that breaks the AddHandler method of registering the FrontController as all the directories upto the script.ext must exist.
Has anyone had any experience migrating a legacy (transaction script/page controller architecture) to a front controller based architecture, in place and incrementally?
I'm tempted to completely "separate" the two code bases. Give the new code a custom extension and use AddHandler, etc to register the FrontController's new code, while allowing regular apache/filesystem dispatch to the legacy code. However that still has problems -- needing to change legacy code to point to the new extensions as those actions are written, etc.
Plus I currently make somewhat extensive use of virtual directories (ForceType handlers) and plan to move more of the application to a virtual directory (ie decoupling URLs from the file system), however that breaks the AddHandler method of registering the FrontController as all the directories upto the script.ext must exist.
Has anyone had any experience migrating a legacy (transaction script/page controller architecture) to a front controller based architecture, in place and incrementally?