1 | NAME: |
---|
2 | |
---|
3 | Smarty - the PHP compiling template engine |
---|
4 | |
---|
5 | VERSION: 2.6.19 |
---|
6 | |
---|
7 | AUTHORS: |
---|
8 | |
---|
9 | Monte Ohrt <monte at ohrt dot com> |
---|
10 | Andrei Zmievski <andrei@php.net> |
---|
11 | |
---|
12 | MAILING LISTS: |
---|
13 | |
---|
14 | We have a few mailing lists. "discussion" for you to share your ideas or ask |
---|
15 | questions, "developers" for those interested in the development efforts of Smarty, |
---|
16 | and "svn" for those that would like to track the updates made in the svn |
---|
17 | repository. |
---|
18 | |
---|
19 | send a blank e-mail message to: |
---|
20 | smarty-discussion-subscribe@googlecode.com(subscribe to the general discussion list) |
---|
21 | smarty-discussion-unsubscribe@googlecode.com (unsubscribe from the general discussion list) |
---|
22 | smarty-discussion-digest-subscribe@googlecode.com (subscribe to digest) |
---|
23 | smarty-discussion-digest-unsubscribe@googlecode.com (unsubscribe from digest) |
---|
24 | smarty-developers-subscribe@googlecode.com (subscribe to the dev list) |
---|
25 | smarty-developers-unsubscribe@googlecode.com (unsubscribe from the dev list) |
---|
26 | smarty-svn-subscribe@googlecode.com (subscribe to the svn list) |
---|
27 | smarty-svn-unsubscribe@googlecode.com (unsubscribe from the svn list) |
---|
28 | |
---|
29 | You can also browse the mailing list archives at |
---|
30 | http://groups.google.com/group/smarty-discussion |
---|
31 | http://groups.google.com/group/smarty-developers |
---|
32 | |
---|
33 | and the OLD list archives at |
---|
34 | http://marc.theaimsgroup.com/?l=smarty&r=1&w=2 |
---|
35 | |
---|
36 | SYNOPSIS: |
---|
37 | |
---|
38 | require("Smarty.class.php"); |
---|
39 | |
---|
40 | $smarty = new Smarty; |
---|
41 | |
---|
42 | $smarty->assign("Title","My Homepage"); |
---|
43 | $smarty->assign("Names",array("John","Gary","Gregg","James")); |
---|
44 | |
---|
45 | $smarty->display("index.tpl"); |
---|
46 | |
---|
47 | |
---|
48 | DESCRIPTION: |
---|
49 | |
---|
50 | What is Smarty? |
---|
51 | |
---|
52 | Smarty is a template engine for PHP. Many other template engines for PHP |
---|
53 | provide basic variable substitution and dynamic block functionality. |
---|
54 | Smarty takes a step further to be a "smart" template engine, adding |
---|
55 | features such as configuration files, template functions, and variable |
---|
56 | modifiers, and making all of this functionality as easy as possible to |
---|
57 | use for both programmers and template designers. Smarty also converts |
---|
58 | the templates into PHP scripts, eliminating the need to parse the |
---|
59 | templates on every invocation. This makes Smarty extremely scalable and |
---|
60 | manageable for large application needs. |
---|
61 | |
---|
62 | Some of Smarty's features: |
---|
63 | |
---|
64 | * it is extremely fast |
---|
65 | * no template parsing overhead, only compiles once. |
---|
66 | * it is smart about recompiling only the template files that have |
---|
67 | changed. |
---|
68 | * the template language is remarkably extensible via the plugin |
---|
69 | architecture. |
---|
70 | * configurable template delimiter tag syntax, so you can use |
---|
71 | {}, {{}}, <!--{}-->, or whatever you like. |
---|
72 | * built-in caching of template output. |
---|
73 | * arbitrary template sources (filesystem, databases, etc.) |
---|
74 | * template if/elseif/else/endif constructs are passed to the PHP parser, |
---|
75 | so the if syntax can be as simple or as complex as you like. |
---|
76 | * unlimited nesting of sections, conditionals, etc. allowed |
---|
77 | * it is possible to embed PHP code right in your template files, |
---|
78 | although not recommended and doubtfully needed since the engine |
---|
79 | is so customizable. |
---|
80 | * and many more. |
---|
81 | |
---|
82 | COPYRIGHT: |
---|
83 | Copyright (c) 2001-2005 New Digital Group, Inc. All rights reserved. |
---|
84 | This software is released under the GNU Lesser General Public License. |
---|
85 | Please read the disclaimer at the top of the Smarty.class.php file. |
---|