Version 1.14a
This commit is contained in:
parent
ba8f323879
commit
dc48225dc9
1094 changed files with 189052 additions and 13889 deletions
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Smarty method Template_Exists
|
||||
*
|
||||
* Checks if a template resource exists
|
||||
*
|
||||
* @package Smarty
|
||||
* @subpackage SmartyMethod
|
||||
* @author Uwe Tews
|
||||
*/
|
||||
|
||||
/**
|
||||
* Checks if a template resource exists
|
||||
*/
|
||||
|
||||
/**
|
||||
* Check if a template resource exists
|
||||
*
|
||||
* @param string $resource_name template name
|
||||
* @return boolean status
|
||||
*/
|
||||
function template_exists($smarty, $resource_name)
|
||||
{
|
||||
// create template object
|
||||
$tpl = new $smarty->template_class($resource_name, $smarty);
|
||||
// check if it does exists
|
||||
return $tpl->isExisting();
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue