If cfexit is used outside a custom tag, it functions like a cfabort. The call to the custom tag, and then the result: cfexit returns control to the page that called that custom tag, or in the case of a tag called by another tag, to the calling tag. Execution resumes following the invocation of the custom tag in the page that called the tag.Ĭfexit is used primarily to perform a conditional stop of processing inside a custom tag. The cfexit tag function depends on its location and execution mode:Ĭfexit can be used to abort the processing of the currently executing CFML custom tag. The cfexit tag can help simplify error checking and validation logic in custom tags. If this tag is encountered outside the context of a custom tag, for example in the base page or an included page, it executes in the same way as cfabort. loop: re-executes body of currently executing tag.exitTemplate: exits page of currently executing tag.exitTag: aborts processing of currently executing tag.Specify the structure name in the attributeCollection attribute and use the tag's attribute names as structure keys.Ĭfabort, cfbreak, cfexecute, cfif, cflocation, cfloop, cfswitch, cfthrow, cftry cfabort and cfexit in the Developing ColdFusion Applications Attributes You can specify this tag's attributes in an attributeCollection attribute whose value is a structure. This tag aborts processing of the currently executing CFML custom tag, exits the page within the currently executing CFML custom tag, or re-executes a section of code within the currently executing CFML custom tag.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |