I have a rather interesting problem on my hands and I was hoping that this forum might give me some good ideas on it.
I would like to develop an application that allows a .html and a .pdf document to be filled with "variables" that is enclosed with a { variable_name } that a person using my application can set dynamically.
So, for example, if an operator of my application sets a portion of the template to dynamically input the firstname of a guest in our user table, the variable in a .pdf file would be { user.firstname } Then the PHP script will be designed to read from the table user and grab the firstname field and replace it with 'user.firstname'
Pretty simple so far right? Here's the catch...
I need to figure out a really nice way to reveal to the people using our system what variable names are allowed WITHOUT revealing to them the underlying database structure and WITHOUT having the programmer to continually maintain a list of allowable variables.
Any feedback would be appreciated all. I thank you in advance.
I would like to develop an application that allows a .html and a .pdf document to be filled with "variables" that is enclosed with a { variable_name } that a person using my application can set dynamically.
So, for example, if an operator of my application sets a portion of the template to dynamically input the firstname of a guest in our user table, the variable in a .pdf file would be { user.firstname } Then the PHP script will be designed to read from the table user and grab the firstname field and replace it with 'user.firstname'
Pretty simple so far right? Here's the catch...
I need to figure out a really nice way to reveal to the people using our system what variable names are allowed WITHOUT revealing to them the underlying database structure and WITHOUT having the programmer to continually maintain a list of allowable variables.
Any feedback would be appreciated all. I thank you in advance.