diff --git a/cake/libs/view/helpers/session.php b/cake/libs/view/helpers/session.php index 1b9d91505..c4c198e4a 100644 --- a/cake/libs/view/helpers/session.php +++ b/cake/libs/view/helpers/session.php @@ -161,5 +161,15 @@ class SessionHelper extends CakeSession { return parent::valid(); } } +/** + * Override CakeSession::write(). + * This method should not be used in a view + * + * @return boolean + * @access public + */ + function write() { + trigger_error(__('You can not write to a Session from the view', true), E_USER_WARNING); + } } ?> \ No newline at end of file