Skip to content

Commit

Permalink
Merging kindred fixing #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Sofer committed Feb 21, 2012
1 parent 835b8fc commit bac4dab
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions controllers/components/wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,21 @@ function save($step = null, $data = null) {
}
$this->Session->write("$this->_sessionKey.$step", $data);
}

/**
* Resets the data from the Session that has been stored by the WizardComponent.
*
* @param mixed $name The name of the session variable (or a path as sent to Set.extract)
* @access public
*/
function delete($key = null) {
if ($key == null) {
return;
} else {
$this->Session->delete("$this->_sessionKey.$key");
return;
}
}
/**
* Removes a branch from the steps array.
*
Expand Down

0 comments on commit bac4dab

Please sign in to comment.