0
votes

I have a controller for posts and an element for comments. I want to include the posts view somehow in comment element. Is this possible to include the PostsController view into an element?

I know how to include elements but never heard or thought of including Controller views.

1

1 Answers

0
votes

You can get the data for the PostsController view using requestAction. If you want to include view-layer code in two different places, pull it into an element - that's what they're for.