• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest Throw Error if template doesn't exist

R

ragtek

Guest
#1
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? )