Exemplo n.º 1
0
Arquivo: Asset.php Projeto: acp3/core
 /**
  * Fetch a template's modification time from data source
  *
  * @param string $name template name
  *
  * @return integer timestamp (epoch) the template was modified
  */
 protected function fetchTimestamp($name)
 {
     $asset = $this->fileResolver->resolveTemplatePath($name);
     return filemtime($asset);
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function process(array $params, \Smarty_Internal_Template $smarty)
 {
     return $this->fileResolver->resolveTemplatePath($params['path']);
 }