Getting Categories Controller to use it's own discussions.php view
I'm trying to make a plugin that shows subcategories on top of discussions in Categories page... (http://domain/categories/category-name/)
I found out that CategoriesController::Index() is not using discussions.php that is in it's own view folder. But insted it's using the one in /applications/vanilla/views/discussions/discussions.php
Please refer to image below :
It seems like this is intentional... (look at class.categoriescontroller.php line:141)
I tried changing some lines (in class.categoriescontroller.php and /applications/vanilla/views/categories/discussions.php) but i keep getting the Bonk page.
I want to know why?
How to force it to use it's own view?
How to override a view in your plugin? (leaving original files untouched)