예제 #1
0
파일: Asset.php 프로젝트: 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);
 }
예제 #2
0
파일: TemplatePath.php 프로젝트: acp3/core
 /**
  * @inheritdoc
  */
 public function process(array $params, \Smarty_Internal_Template $smarty)
 {
     return $this->fileResolver->resolveTemplatePath($params['path']);
 }