why adding the model as member to controller ?


I was following the blog tutorial and i realized that actionView() method from PostController was modified to:

  • remove the preset $id parameter

  • store the model retrieved in a new member variable: $_model.

Any idea why model is cached ? As far as i know with each request a new controller is instantiated, so why bother storing the model corresponding to a specific id if it will be destroyed immediately after ?

Am I missing something ?