HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to render view from service not from controllers?

We are using the Vanilla-forum to build our platform. So I have a requirement, that I have to fetch the comments for a single discussion after when the single discussion page completely loads through ajax. I am able to fetch the comments but can't able to send it back to the render the view. Then the comments section will render from the ajax to the discussion's page. But we are using services folder where we are preparing/rearranging our data to return data directly to the controllers. So, my question here is I didn't found any way to render the view inside my services folder.
Thanks in advance!

Comments

Sign In or Register to comment.