Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Solas #1
CFC's and Output="true"
I was reading an article today "Interacting with component methods" on how to
call or invoke CFC's properly using all types of ways! Good stuff
A quick snippet from the CFMX Best Practices online meeting with Ben Forta
(unfourtunately, this is not verbatim):
"Coldfusion Components should NOT be used to display output information but
rather provide the data processing. Custom CF Tags should be used to generate
the output from the data passed to it by the Component"
I have seen this in action folks; the best thing you can possibly do is keep
this level of abstraction. It's not only easire to maintain but also easier to
troubleshoot.
Well that pretty much hits what I have been doing lately right on the head. I
have been using cfc's to generate 'content areas' for my users. There is a lot
of authorization levels and I found that I can pass those levels to the cfc,
test there and just simply, return the proper chunk of html code. ( Usually a
small table or <ul> <li> list items ).
Am I going to run into problems from this methodology. I can see that the
cfc's arent highlighting the syntax in DW, which makes me a little suspect that
I should be doing something else. Is this where custom tags comes in?
Solas Guest
-
#39195 [Opn->Bgs]: if (0=="any sting") echo "it's return true";
ID: 39195 Updated by: derick@php.net Reported By: waynewn at citiz dot net -Status: Open +Status: ... -
#39195 [NEW]: if (0=="any sting") echo "it's return true";
From: waynewn at citiz dot net Operating system: win/freebsd PHP version: 5.1.6 PHP Bug Type: Scripting Engine problem Bug... -
Flash Remoting and a CFC's "this" scope
FYI - When accessing a CFC via Flash Remoting, you are making a static call, not creating an instance. This can be worked around however. You... -
Acrobat Form Submit error: changes VALUE="true" to "0"
I wrote an HTML page with a form. In the form I had many inputs as in: <INPUT TYPE="radio" NAME="Q1" VALUE="true"> and <INPUT TYPE="radio"... -
#25152 [Opn->Bgs]: output buffering functions don't catch "virtual" output
ID: 25152 Updated by: iliaa@php.net Reported By: msarsale at buenosaires dot gov dot ar -Status: Open +Status:...



Reply With Quote

