翻訳と辞書
Words near each other
・ Vlerick Leuven Gent Management School
・ Vleteren
・ Vleugelia
・ Vleuten
・ Vleuten railway station
・ Vleuten-De Meern
・ Vlezenbeek
・ Vlečenoto
・ VLF cable testing
・ VLF Transmitter Cutler
・ VLF transmitter DHO38
・ VLF Transmitter Woodside
・ VLGC
・ Vlhošť
・ VLHS
VlibTemplate
・ Vlie
・ Vlieghuis
・ Vlieland
・ Vlieland Heliport
・ Vlierbeek Abbey
・ Vlierden
・ Vlierzele
・ Vliet
・ Vliet (canal)
・ Vliet Street Commons
・ Vliet, Utrecht
・ Vlieter Incident
・ Vliets, Kansas
・ Vlijmen


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

VlibTemplate : ウィキペディア英語版
VlibTemplate

vlibTemplate is a template engine written in PHP. Programmers and web developers may use it for web development. vlibTemplate is a PHP class that is intended to make splitting PHP from HTML a simple and natural task. It makes use of the following vlibTemplate ''markup tags'' (like html tags); , and so on.
The file written with these style tags is called a template. A template can be an HTML file to use on the web, or perhaps a text file to use as an e-mail template... as you can guess there are many possibilities. The template file is always separate from the PHP script that uses it, that way, a designer for example can change the template file without having to go through all of the php coding, thus saving the developer having to worry about it.
Using this class you set the values for the variables, loops, if statements, etc. which are declared in the template. This enables you to separate all of the design from the data, which you create using PHP.
vlibTemplate is a part of ''vLIB''. It has an interface to ''vlibDate'' and ''vlibMimeMail''. You can program powerful web applications with vLIB.
== Code example ==

Since vlibTemplate separates PHP from HTML, you have two files:










Note that this file contains plain HTML and one markup tag. TMPL_VAR is used to display template variables, which are assigned in the PHP script:
require_once 'vlib/vlibTemplate.php';
$tmpl = new vlibTemplate('tmpl/basic.htm');
$tmpl->setvar('title_text', 'TITLE: This is the vLIB basic example ...');
$tmpl->setvar('body_text', 'BODY: This is the message set using setvar()');
$tmpl->pparse();
Even complicated designs can be programmed with vlibTemplate. You can use ''vlibTemplateCache'' to speed up the parsing process.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「VlibTemplate」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.