render_component_as_string equivalent

hello ,

is there anay solution to implemente differently render_component_as_string , otherwise i would like to get the content of a method in diffferent controller

thnx