Implementing ColdFusion CFC Partial Class C #?

Does ColdFusion offer a mechanism for splitting CFC into multiple files? I'm not talking about the extension, I'm talking about splitting SAME CFC into several files; just like C # allows for "partial" classes. The reason for this is because I use T4 to generate the CFC heap, and I want to be able to mark functionality on the generated CFC by doing this in another file. I want to do this in such a way that it does not violate the principle of open closure.

+3
source share
2 answers

No, sorry. I'm afraid a language restriction. CFC is a single file.

, , - . , cfcomponent - , , , .

0

<cfinclude> , :

  • - CFC, cfincluded
  • <cfajaxproxy cfc="your.cfc"> javascript
  • -

( , .., cfc)

googling Coldfusion Mixins.

+5

Source: https://habr.com/ru/post/1743878/


All Articles