diff --git a/cake/libs/view/templates/layouts/default.thtml b/cake/libs/view/templates/layouts/default.thtml
index 2188007b1..465cc821d 100644
--- a/cake/libs/view/templates/layouts/default.thtml
+++ b/cake/libs/view/templates/layouts/default.thtml
@@ -28,7 +28,8 @@
-CakePHP :
+CakePHP :
+
css('cake.generic');?>
@@ -38,9 +39,9 @@
CakePHP Rapid Development
- controller->Session->check('Message.flash'))
+ check('Message.flash'))
{
- $this->controller->Session->flash();
+ $session->flash();
}
echo $content_for_layout;
?>
diff --git a/cake/libs/view/view.php b/cake/libs/view/view.php
index c7d70204e..3e7009f27 100644
--- a/cake/libs/view/view.php
+++ b/cake/libs/view/view.php
@@ -740,7 +740,7 @@ class View extends Object{
*/
function &_loadHelpers(&$loaded, $helpers) {
static $tags;
-
+ $helpers[] = 'Session';
if (empty($tags)) {
$helperTags = new Helper();
$tags = $helperTags->loadConfig();