Re: My template idea...
[email protected] ("Tobias Ratschiller")
| Newsgroups | php.template |
|---|---|
| Message-ID | <00d401bf77ff$4c727ac0$26d0f2c2@tobiasneu> |
> Right, that's what I was trying to figure out - who should be
> responsible for loading config files like that - developer or designer.
> Does designer lose anything if the developer does it?
My preference would be to have the developer handle this.
What could be an interesting feature, though:
With the whole template concept, in real life you often end up assigning a
lot of variables or array elements to the placeholder of the same name, for
example:
tpl_assign("variable", $variable);
or tpl_assign() using the schema but with an array.
This could be shortened to a a tpl_batch_assign(), taking only the
placeholder name and automatically inserting the variable with the
corresponding name for it.
-Tobias