cakephp $this->data loses a LOT of its data array after form submit
问题 I have a manage_photos page whose $this->data contains a great deal of information about its Unit. I have a form which makes the appropriate changes in the database. However, upon submission of the form, $this->data (as seen when using pr($this->data)) loses MOST of its array data once the page refreshes. Here is the form code in my view: echo $this->Form->create('Unit', array( 'action' => 'manage_photos', 'type' => 'file', 'inputDefaults' => array( 'label' => false, 'div' => false ) ) );