Lack of interest Throw Error if template doesn't exist

  • Thread starter Thread starter ragtek
  • Start date Start date
This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.
R

ragtek

Guest
ATM xenforo shows a "empty page", if you try to use a template which doesn't exist in responseView
For example:
PHP:
 return $this->responseView('Ragtek_PC_View_Delete', 'faketemplate', $viewParams);

IMHO it would be better to show a error message, instead of the empty page (in the debug mode)

The problem is, that this would need some changes because of the json responses (that's something i don't understand => http://xenforo.com/community/threads/clean-way-for-json-responses.15784/ why do we need to use a fake template, if we don't need it for the return? )
 
Upvote 3
This suggestion has been closed. Votes are no longer accepted.
Liked, as I love when system clearly fail. An empty page can have me wondering why for hours until I realized I misspelled the template name
 
Top Bottom