Hi,
I have this controller that handles AJAX notifications from client side.
In a sample action method of it, I process the request and output a simple JSON encoded message according to the request details.
Now, when the output has finished, I’d like the code execution to stop. I have two relevant options:
[list=1][][font="Courier New"]return;[/font][][font="Courier New"]Yii::app()->end();[/font][/list]
Now, is there any difference between the two?
What would you recommend, if there’s any meaningful bias toward one option?
(There are several similar threads out there but none is precise as this in either the question or the replies so I’m phrasing it here).
Thanks!