Merging changes for SessionHelper into 1.2.x.x branch

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3458 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-09-10 14:33:20 +00:00
parent 5dcd93f0ff
commit e08a4a1da6
2 changed files with 5 additions and 4 deletions

View file

@ -29,6 +29,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CakePHP : <?php echo $title_for_layout;?></title>
<link rel="icon" href="<?php echo $this->webroot . 'favicon.ico';?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $this->webroot . 'favicon.ico';?>" type="image/x-icon" />
<?php echo $html->css('cake.generic');?>
</head>
@ -38,9 +39,9 @@
<h1>CakePHP Rapid Development</h1>
</div>
<div id="content">
<?php if ($this->controller->Session->check('Message.flash'))
<?php if ($session->check('Message.flash'))
{
$this->controller->Session->flash();
$session->flash();
}
echo $content_for_layout;
?>

View file

@ -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();