seperating smarty code from html code
| From: | Andy B | Date: | Mon, 20 Oct 2003 17:08:11 +0000 |
| Subject: | seperating smarty code from html code | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10395@lists.php.net to get a copy of this message | ||
hi...
i have an interesting problem i didnt know if it was possible to do or not:
i write php for a web designer (they want nothing to do with the php part) or could even care less
what the php does for that matter. i mean they care what it does but as far as how it works they
could care less. well i decided to bring smarty into the picture because of course its easier and
cleaner in my opinion than native php itself. besides that the person that does the html/template
work didnt want to open a "php" file and see lots of lines of code he knew nothing about.
my problem is that using smarty inside his html templates would make him learn something new
alltogether and he doesnt really want that... all he wants to do is plop a ton of variables inside
an html template and off he goes. he doesnt want to deal with html_images if statements or any
program flow at all...
is there a way to seperate those out of the templates alltogether other than the
"variables/functions" and so on so e doesnt have to deal with them??
i suppose i can put like table loops or whatever inside php but then he couldnt change table looks
without my help....im stuck