Skip to main content
July 23, 2008
Question

Include User Defined Language Items

  • July 23, 2008
  • 1 reply
  • 280 views
I am currently developing an app that needs to let users define their own editable text for some items.

I didnt want to include all of these options in the database to avoid having a large database and lots of cfquery's so I though having them in a file of some sort would be best, and just including the file as needed.

So, having thought that I put a bunch of cfset's in the language file and set all these variables, but then I realised that someone could put a cfdump in there and have the app spit out information that they shouldnt see.

So how can you let users define language items in a file and load them as usable variables, but not allow them to put other CF tags in that page?
    This topic has been closed for replies.

    1 reply

    July 25, 2008
    Is it possible to use regex somehow to loop over a file that contains lines like <varname = 'what you want'> and have everything between the '' stored in an two dimensional array with the variable name as the name?

    Are there any suggestions about the best way to handle this?