CFCs and the Presentation Layer
Hi,
I am starting to get to grips with CF and have a few questions about using CFC's
At present I have a News module which has 3 major functions
-add news
-delete news
-update news
I have CFC with 3 methods, add, delete and update. What is the best practice for my cfm files
1) have 3 seperate cfm pages each calls the method it requires
2) have one page index.cfm with a case to output the form required (url.action=add, url.action=update, url.action=delete)
3) same as above but the forms are included in the method (lots of HTML in my CFCs)
They all work, 1 has more cfm pages, 2 has one but is a bit harder to read, 3 has one CFM also and keeps the CFM really clean but had loads of HTML in the CFC (a bad thing?)
I would be intersted in opinions on the best way to work.
Thanks,
H.
