difference between $this->data and $this->request->data?
Asked Answered
D

1

6

In cakephp 2.1 whats the difference between $this->data and $this->request->data?

Drain answered 15/4, 2012 at 17:9 Comment(0)
E
11

$this->data was used till cakephp 1.3

$this->request->data has replaced the $this->data array from cakephp 2.x onwards.

For backward compatibility $this->data is also still supported.

$this->request represents CakeRequest object and is accessible in Controller, Views and Helpers.

For more info : http://book.cakephp.org/2.0/en/controllers/request-response.html

Ebro answered 16/4, 2012 at 9:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.