![JohntheFish](/files/avatars/51576.jpg)
Controllers inherit a redirect method (which does not return).
If you use that it sends a 301 status code and not the desired 404 on the requested url.
So it will only tell that the page to which was being redirected is not found on the server not that the original url couldn't be found.
$this->redirect('/page_not_found');
So it will only tell that the page to which was being redirected is not found on the server not that the original url couldn't be found.
I see what you mean.
I don't think any actual output is generated until you get to the view, so you may be able to bypass any C5 output and do something like:
I have never tried it, but its akin to how an ajax tool would return clean output, so maybe it would work.
I suspect that when Oregon wakes up there will be someone who has a much better and cleaner idea.
I don't think any actual output is generated until you get to the view, so you may be able to bypass any C5 output and do something like:
I have never tried it, but its akin to how an ajax tool would return clean output, so maybe it would work.
I suspect that when Oregon wakes up there will be someone who has a much better and cleaner idea.