You are here

function Smarty::template_exists in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/smarty/Smarty.class.php \Smarty::template_exists()

Checks whether requested template exists.

Parameters

string $tpl_file:

Return value

boolean

File

includes/moodle/lib/smarty/Smarty.class.php, line 1040

Class

Smarty
@package Smarty

Code

function template_exists($tpl_file) {
  $_params = array(
    'resource_name' => $tpl_file,
    'quiet' => true,
    'get_source' => false,
  );
  return $this
    ->_fetch_resource_info($_params);
}