Skip to content
Permalink
Browse files

Updating session helper constructor to fix failing tests in Controlle…

…r::render() integration tests.
  • Loading branch information...
markstory committed Aug 11, 2010
1 parent 62d646d commit bd89ef533b000b12d439c122b1dc33f430af5ce3
Showing with 13 additions and 0 deletions.
  1. +13 −0 cake/libs/view/helpers/session.php
@@ -31,6 +31,19 @@
*/
class SessionHelper extends AppHelper {
/**
* Constructor. Starts the session if it has not already been started
*
* @param View $view View instance for this helper
* @param array $settings Settings for the helper.
* @return void
*/
public function __construct(View $view, $settings = array()) {
parent::__construct($view, $settings);
if (!CakeSession::started()) {
CakeSession::start();
}
}
/**
* Used to read a session values set in a controller for a key or return values for all keys.
*

0 comments on commit bd89ef5

Please sign in to comment.
You can’t perform that action at this time.