Skip to content
Discussion options

You must be logged in to vote

@marshmob I tried your approach with this controller code:

component extends="Controller" {
    function index() {
        urls=model("user").findAll(returnAs = "structs");
        renderWith(data = urls, hideDebugInformation = false, layout = "false");
    }
}

and this view code:

<cfcontent type="application/json">
<cfoutput>
#serializeJSON(urls)#
</cfoutput>

when the hideDebugInformation is set to false then it prints the wheels debug footer with the json:

but when the hideDebugInformation is set to true then it prints only the json:

i have my site set to development mode so it seems to be working correctly.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@marshmob
Comment options

@zainforbjs
Comment options

Answer selected by zainforbjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants