end() is the method of CApplication. According to the Guide, end() will "Terminates the application."
My question is when and under what circumstance, you need to use end() to stop the application?
I am a beginner, even after reading Yii Guide and tutorials. The Yii book, I can only assimilate 40% of the content. What do suggest is the best way to learn to use each class?
Also using that code will mean that your application will end properly (which is different to die;) so the logs file for example will be still written.
I use end() mostly for debugging & test purposes die() is not what I need, because web logs won’t be displayed. Also end() is useful for ajax requests, when you need only to echo something and then terminate the application.