cfmodule tag

What is the use of cfmodule tag or what are the major advantages of cfmodule tag and why is iti used for? Any sample example?

Does it have an ending tag?

Thanks
Anup
anup001Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tacobell777Commented:
Its a way to call other cfm files, but I would stay clear of them and use CFCs, they are more advanced and CFModules are old...
Tacobell777Commented:
I should have said
Its a way to include/re-use functionality stored in other cfm files
marcin_komCommented:
Under ColdFusion you can crate your own 'custom tags'.  They are like functions, but are stored one per file.

There are two ways to call these custom tags: you can either place the file in local directory, or in a directory where ColdFusion searches for custom tags, and call it up using the format <CF_MYTAG param1="val" param2="val"...>.

CFMODULE is the alternate method to call your custom tags, in this format:
    <CFMODULE template="path/tagfile.cfm" param1="val" param2="val" ...>

The CFMODULE tag can optionally have a closing tag, depending on the functionality you are trying to implement in your custom tag. In this case the format would b:
    <CFMODULE template="path/tagfile.cfm" param1="val" param2="val" ...>
    ....
    </CFMODULE>

Cheers,
Marcin

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.