Hey - I am gradually converting sections of a lega...
# fw1
a
Hey - I am gradually converting sections of a legacy site to FW/1. I have some unconverted sections that have pages that could ideally use some small sections of output that I already have FW/1 views for in converted sections. Is this doable? I don't think cfinclude works like that, so I guess I'd have to wrap the call to the FW/1 view in a separate request - like say an ajax call or call get the output from a REST service? I am sure I am missing something. thanks
a
Sounds like you could just include the FW/1 view in your legacy .cfm file. A FW/1 view is just an .cfm file at the end of the day. You would have to set up all the variables etc that the view.cfm used though as you're not running in via cfinclude in the context of a FW/1 view so how much effort is involved will vary.
d
I think that you could use cfhttp to call the fw/1 page - if you only want a small section of a page that you have as a view within a bigger fw/1 page you would need to create a dedicated page that only has that view (and no layout), i.e.
request.layout = false;
You could then wrap the cfhttp response in a cfsavecontent to be able to output it where you need on your page.
m
we were in a similar scenario years ago, we approached it as @aliaspooryorik describes, and it worked very well.
a
excellent ideas. thanks all!