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