DeltaHF
Well-known member
I'm creating a custom search page for my Resource Manager. I have built a custom controller to fetch the results, and currently outputs them using the resource_featured template, like so:
I want to customize that output using my own template, but I don't understand exactly what this responseView() method is doing. There is no file located at /library/XenResource/ViewPublic/Resource/Featured.php as I had expected from the first parameter there.
While experimenting, I have also tried copy-pasting the contents of resource_featured into my own new custom template and just swapping out the names for the second parameter, but none of the dynamic elements in the template appear to be processed or output, which makes it clear to me I don't really understand what is going on here.
What does responseView() do, exactly? How can I wire up my own custom template to work with my new controller?
PHP:
return $this->responseView('XenResource_ViewPublic_Resource_Featured', 'resource_featured', $viewParams);
While experimenting, I have also tried copy-pasting the contents of resource_featured into my own new custom template and just swapping out the names for the second parameter, but none of the dynamic elements in the template appear to be processed or output, which makes it clear to me I don't really understand what is going on here.
What does responseView() do, exactly? How can I wire up my own custom template to work with my new controller?
Last edited: