filepath = 'db:'; $source->uid = sha1($source->resource); $source->timestamp = 1000000000; $source->exists = true; } public function getContent(Smarty_Template_Source $source) { return '{$x="hello world"}{$x}'; } }