PHP code example of ikkez / f3-template-directives

1. Go to this page and download the library: Download ikkez/f3-template-directives library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ikkez / f3-template-directives example snippets


\Template\Tags\Form::initAll();

// change source key
$f3->copy('POST','form1');
\Template\Tags\Form::instance()->setSrcKey('form1');

$f3->copy('POST','FORM.contact');
\Template\Tags\Form::instance()->setDynamicSrcKey(true);

\Template\Tags\Markdown::init('markdown');

\Template\Tags\Image::init('image' [, $tmpl [, $options ] ] );