|
Posted by zacware on 04/28/06 20:30
I'm writing a product configuration system in PHP. I have a list rules
to code, as if part A is added, then parts B and C need to be added as
well. etc, etc.
The rules change quite a bit as the products are refined, so I thought
it would be really if I could give the product managers a little
mini-language where they could build their own if-statements and other
simple rules without having to come back to me to recode everything. I
would write a DHTML interface that would be sort of a "script-builder"
for them, and it would check for correct syntax before saving
Has anyone ever seen anything like this done in PHP? I've started
sketching out how I'm going to do it myself but it sure is a big task.
I'd hate to be reinventing the wheel
I figure I could let them enter raw php code and use the eval command
on it, but that's somewhat dangerous! it would be safer to have a
pseduo lanauge that would then be converted to php code in the
background.
Navigation:
[Reply to this message]
|