mrjayviper
mrjayviper

Reputation: 2388

How to organize ColdFusion-based MVC application?

I want to move one of our existing apps (currently located in http://www.companywebsitegoeshere.com/myapp1) to an MVC structure.

As can be seen in the URL, there are many apps running in the website which I intend to move at some stage. I don't have write access to the wwwroot (/var/www/html in my case) and the webserver is used by multiple developers across the company.

I'm hoping I can have the MVC framework core files/folders + my app all located in in 1 subfolder. In the case of myapp1, all the filers and folders will be inside /var/www/html/myapp1 subfolder.

Can you please point me to the right direction (links/guides/docs/videos/etc)? I've looked at several like cfwheels/mach-ii/fw1 but they seemed to require wwwroot access.

Upvotes: 2

Views: 313

Answers (1)

rip747
rip747

Reputation: 9455

cfwheels can live in a subdirectory just fine. as a matter of fact, i run the framework test suite from within a subdirectory off root just to make sure of this before each commit.

the only thing that you have to change when serving a website from a subdirectory is appending the url rewriting with your subdirectory path. this is a rewriter thing, not a cfwheels thing.

http://rip747.wordpress.com/2009/02/23/cfwheels-url-rewriting-in-a-subfolder/

Upvotes: 3

Related Questions