Date: 09/28/00
- Next message: Sanlong Irvan: "[phplib] gd1.3 in php"
- Previous message: Vibol Hou: "RE: [phplib] 7.2b-win95 showoff.php3 glitch"
- In reply to: Vladimir Gurinenko: "[phplib] any way to parse .php3 files with template.inc?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Template class is intended to parse any text data. A template file could
contain html, plain text, php script or c source - anything - but it is
interpreted as text by the Template class. It has no ability to execute
anything in templates. It simply search strings like '{anything}' , '<!--
BEGIN anything -->' and '<!-- END anything -->' in template file, and decide
to fill them with defined variables, leave them untouched or remove them from
the template. That's all. You'll have to provide a script which can work with
particular template file. Put all the logic in that script.
Templates was designed just to let you distinguish between code (logic) and
markup (presentation), and to avoid poor practice of mixing code and html
tags in one script. The great feature of php to embed code in html pages
become annoying in large projects - the code become unreadable and hardly
maintainable, it is difficult to change presentation design and so on. With
templates you can avoid this.
Vladimir Gurinenko wrote:
> Hello All:
>
> Is there any way to parse PHP3 files with PHPLIB's Template class? When I
> tried to parse a PHP3 file, all I got was it's source code, not the result
> of its execution. Is there a way to parse it *right*?
>
-- Best regards, Max A. Derkachev mailto:kot <email protected> Symbol-Plus Publishing Ltd. phone: +7 (812) 265-0054, 265-1228, phone/fax: 567-8775 http://www.Books.Ru -- All Books of Russia--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Sanlong Irvan: "[phplib] gd1.3 in php"
- Previous message: Vibol Hou: "RE: [phplib] 7.2b-win95 showoff.php3 glitch"
- In reply to: Vladimir Gurinenko: "[phplib] any way to parse .php3 files with template.inc?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

