Project layout / mapping question; I was asked to ...
# cfml-general
s
Project layout / mapping question; I was asked to move an application from one server to another b/c of reasons, the app in question is running under mura (6.1) and I am not able to add mappings <= this is important. Current components that are being initialized / used within the application that is being moved as followed:
foo.package.Name
. In order to keep things contained, i created a new folder, let's call it app_test, that contains all .cfm pages (it does not have an Application.cfc b/c Mura won't load that one...). I've moved all components into a subfolder of this
app_test
folder. But now, when i create an object from within this subfolder, it complains that the return types don't match, e.g. "returned type is not of type foo.package.Name". Again, I am not able to use per-application mappings in this particular scenario (b/c doing that would cause name collisions with an existing application using the same prefix / mapping). Does anybody have ANY idea on how to tackle this? I apologize if my explanation sounds a bit all over the place, English isn't my native language ;).
e
That is heavily outdated code. It would be easier and cleaner, to go page by page, template by template, and re-code them for MASA/MURA current than trying to port old code, which is highly insecure on another server. To do this, set up a new MASA / MURA website, then go page by page and start re-coding each page. You will find that this gives you a chance to clean up, bad practices, modernize the code and secure the whole site.
s
That was not an option.