I use Cakephp, but this is MVC / php doubt
letting the view display the message
against
echo 'Invalid Data'; exit;
I would like to know if there are any pitfalls in the second case, such as memory leak, etc. Which one is better
EDIT
In the case of ajax call, we exit well. and what about memory leaks and other issues. All variables are redistributed
source
share