Top
Dumping object inside cfscript tag – Dragos Cirjan
fade
533
post-template-default,single,single-post,postid-533,single-format-standard,eltd-core-1.1.1,flow child-child-ver-1.0.0,flow-ver-1.3.6,,eltd-smooth-page-transitions,ajax,eltd-blog-installed,page-template-blog-standard,eltd-header-standard,eltd-fixed-on-scroll,eltd-default-mobile-header,eltd-sticky-up-mobile-header,eltd-dropdown-default,wpb-js-composer js-comp-ver-5.0.1,vc_responsive

Warning: A non-numeric value encountered in /usr/src/wordpress/wp-content/themes/flow/framework/modules/title/title-functions.php on line 417

Dumping object inside cfscript tag

Dumping object inside cfscript tag

I’ve been looking for this a few times now, until now i’ve found two interesting options.

One is creating a cffunction of your own, and using it inside a cfscript afterwards:

<CFFUNCTION NAME="MyDump">
    <CFARGUMENT NAME="OBJ" Required="TRUE">
    <CFDUMP VAR="#Obj#">
</CFFUNCTION>

The other one is using a 100% cfscript approach, which can also be placed in a function of your own:

createObject("component", "cfide.adminapi.base").dump(var);

Also, starting ColdFusion 9, you can use the writeDump function.

Cirjan Dragos
No Comments

Post a Comment