_getSmartyObj(); // test if exists if (!class_exists($class_impl)) { throw new SmartyException("Undefined class '$class_impl' in register template class"); } // register the class $smarty->registered_classes[ $class_name ] = $class_impl; return $obj; } }