PHP Classes

File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-get-tags.md

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-get-tags.md   Download  
File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-get-tags.md
Role: Example script
Content type: text/markdown
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 2 months ago
Size: 558 bytes
 

Contents

Class file image Download

getTags()

return tags used by template

Description

string

getTags

object

template

This function returns an array of tagname/attribute pairs for all tags used by the template. It uses the following parameters:

  • `template` is the template object.

> Note > > This function is experimental.

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

// create template object
$tpl = $smarty->createTemplate('index.tpl');

// get tags
$tags = $smarty->getTags($tpl);

print_r($tags);

?>