Welcome Guest, Not a member yet? Register   Sign In
Template parser and form helper problem
#9

[eluser]esthonwood[/eluser]
[quote author="Aken" date="1343183740"]As it is, no, the template parser is just for very basic string replacements. And it is not designed to be integrated directly with PHP (that's the point of template processors in the first place, anyway - avoiding PHP code to make things simple).

set_value() can easily be assigned to a template variable. form_dropdown() can be assigned to a variable as a whole, or you can generate your own HTML and assign it where necessary (maybe you'll want to assign only the <option> list to a variable).

You can always extend the template parser as well, to include your own functionality.[/quote]

I'm rewriting my code to assign the form helper functions to a template variable. it will add more lines of code but that's fine. Thanks Smile


Messages In This Thread
Template parser and form helper problem - by El Forum - 07-23-2012, 02:11 AM
Template parser and form helper problem - by El Forum - 07-23-2012, 12:49 PM
Template parser and form helper problem - by El Forum - 07-24-2012, 05:06 AM
Template parser and form helper problem - by El Forum - 07-24-2012, 12:22 PM
Template parser and form helper problem - by El Forum - 07-24-2012, 06:12 PM
Template parser and form helper problem - by El Forum - 07-24-2012, 07:14 PM
Template parser and form helper problem - by El Forum - 07-24-2012, 07:27 PM
Template parser and form helper problem - by El Forum - 07-24-2012, 07:35 PM
Template parser and form helper problem - by El Forum - 07-24-2012, 08:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB