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 2: block iteration1. Simple block iterationBasic parse() example. Filling a list from an array.
2. Nested block iterationLet's fill a HTML table from a two-dimensional array.
3. Menu-like structuresThis is used to output a sequence of elements that may have different presentation, consider things like normal and selected elements in menu. The much more complex example is the ITDynamic renderer of HTML_QuickForm.
4. Methods to manually control removal of blockstouchBlock() is used to show the blocks that would be considered empty and therefore will be removed.
hideBlock() is used to hide the blocks that would be shown due to their non-empty status, in this case 'edit' links.
5. Using get() to move blocks aroundIf you need a copy of a block somewhere else in the template... This is a copy of the block from section 1: {duplicate} | |||||
:: Command execute :: | |
--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5311 ]-- |