I really need to use $this->Session->read('id') in one of the model’s method therefore I need to include Session component in the model. How can I do that? public $component = array('Session'); doesn’t work like in the Controller.
I really need to use $this->Session->read(‘id’) in one of the model’s method therefore I
Share
the component should be and is limited to the controller.
but you can use the static access:
etc