Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F391484
smarty_method_template_exists.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
560 B
Subscribers
None
smarty_method_template_exists.php
View Options
<?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
Smarty_Method_Template_Exists
(
$smarty
,
$resource_name
)
{
// create template object
$tpl
=
new
$smarty
->
template_class
(
$resource_name
,
$smarty
);
// check if it does exists
return
$tpl
->
isExisting
();
}
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 20:24 (1 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25847
Default Alt Text
smarty_method_template_exists.php (560 B)
Attached To
rZED Zed
Event Timeline
Log In to Comment