php, template, material, Tfile class