Smart.Framework Logo

final class \SmartModExtLib\TplTwig\SmartTwigTemplating
implements \SmartModExtLib\Tpl\InterfaceSmartTemplating
{ } ::

Provides an easy to use connector for Twig Templating Engine inside the Smart.Framework.


class Methods

public static function version ( ) {} :: STRING
reimplemented  over \SmartModExtLib\Tpl\InterfaceSmartTemplating
public static function render_file_template ( string $file, array $arr_vars = [] ) {} :: STRING
reimplemented  over \SmartModExtLib\Tpl\InterfaceSmartTemplating
public static function debug ( string $tpl ) {} :: STRING
reimplemented  over \SmartModExtLib\Tpl\InterfaceSmartTemplating

class Properties


class Constants


Sample code: PHP

<?php

// Sample: use this code in a controller of Smart.Framework (after you install the Smart.Framework.Modules)
 
$this->PageViewSetVar(
     
'main',
     
\SmartModExtLib\TplTwig\SmartTwigTemplating::render_file_template(
         
'modules/my-module-name/views/my-view.twig.htm',
         [
             
'someVar' => 'Hello World',
             
'otherVar' => date('Y-m-d H:i:s')
         ]
     )
 );

// #end php code


documentation generated on: 2023-10-19 23:15:56 +0000


Smart.Framework © 2009-2023 unix-world.org