Thinking About Extending CFML - macromedia COLDFUSION MX 7 Web Application Construction Kit [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

macromedia COLDFUSION MX 7 Web Application Construction Kit [Electronic resources] - نسخه متنی

Ben Forta, Raymond Camden, Leon Chalnick, Angela Buraglia

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید













  • Thinking About Extending CFML



    Throughout this book, you have been learning how to use CFML's built-in tags and functions to produce dynamic Web pages. You have used tags like <cfquery> and <cfoutput> to display information stored in databases, and you have used functions like uCase() and dateFormat() to further tweak your work.


    For the next few chapters, you will be exploring how to extend the CFML language by creating your own tags, functions, and components. Once you see how easy it is to do so, you will find that you can make your application code much more elegant and maintainable. It's a very exciting topic. It's even fun.


    There are four basic ways in which you can extend ColdFusion:



    • User-Defined Functions.
      As the name implies, UDFs are functions that you create yourself. If you feel that some function is missing from ColdFusion's list of built-in ones, or that a particular function would be especially handy for an application you're building, you can just make the function yourself. UDFs are what this chapter is all about.



    • Custom Tags.
      UDFs let you make your own functions, but Custom Tags allow you to create your own CFML tags. Of all the extensibility methods listed here, Custom Tags remain the most flexible and powerful. For more information, see Chapter 23, "Building Reusable Components."



    • ColdFusion Components (CFCs).
      Chapter 23 for details.



    • CFX Tags.
      It is also possible to write your own CFX tags. You can write the code to make the tag do its work in either Java or C++. For more information about writing CFX tags, see the ColdFusion MX documentation or consult our companion book, Advanced Macromedia ColdFusion MX 7 Application Development (Macromedia Press, 0-321-29269-3).



    Chapter 23 so you know the extensibility options available to you. In many cases, you can get a particular task done by creating a tag or a function, so it helps to have an understanding of both.



  • / 281