assignInclude("main", "./tptable.tpl"); $stpl->assignInclude("rows", "./tprow.tpl"); //create the file ./tpmain.stpl //IMPORTANT NOTE: make sure the target dir is writable by PHP $stpl->doSerialize(); //open useSerialized.php to see how to use the serialized template ?>