File: src/Features/Template.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu  >  Jaxon  >  src/Features/Template.php  >  Download  
File: src/Features/Template.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change:
Date: 7 months ago
Size: 784 bytes
 

Contents

Class file image Download
<?php

/**
 * Template.php - Trait for template functions
 *
 * @package jaxon-core
 * @author Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @copyright 2016 Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
 * @link https://github.com/jaxon-php/jaxon-core
 */

namespace Jaxon\Features;

trait
Template
{
   
/**
     * Render a template
     *
     * @param string $sTemplate The name of template to be rendered
     * @param array $aVars The template vars
     *
     * @return string The template content
     */
   
public function render($sTemplate, array $aVars = [])
    {
        return
jaxon()->di()->getTemplateEngine()->render($sTemplate, $aVars);
    }
}


For more information send a message to info at phpclasses dot org.