Changeset 265

Show
Ignore:
Timestamp:
09/10/06 10:00:02 (6 years ago)
Author:
john
Message:

updated application.phtml with correct session syntax

Location:
trunk/trax
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/app/views/layouts/application.phtml

    r174 r265  
    55<body> 
    66 
    7 <? if( array_key_exists('flash',$_SESSION) 
    8        && array_key_exists('notice',$_SESSION) ): ?> 
    9     <font color="green"><?=$_SESSION['flash']['notice']?></font><br><br> 
    10 <? endif; ?> 
    11 <? if( array_key_exists('flash',$_SESSION) 
    12        && array_key_exists('error',$_SESSION) ): ?> 
    13     <font color="red"><?=$_SESSION['flash']['error']?></font><br><br> 
    14 <? endif; ?> 
     7<?php if(Session::isset_flash('error')): ?>                                      
     8    <font color="red"><?php echo Session::flash('error') ?></font>    
     9<?php elseif(Session::isset_flash('notice')): ?>     
     10    <font color="green"><?php echo Session::flash('notice') ?></font>    
     11<?php endif; ?>  
    1512 
    16 <?=$content_for_layout?> 
     13<?php echo $content_for_layout ?> 
    1714         
    1815</body> 
  • trunk/trax/data/app/views/layouts/application.phtml

    r183 r265  
    55<body> 
    66 
    7 <? if( array_key_exists('flash',$_SESSION) 
    8        && array_key_exists('notice',$_SESSION) ): ?> 
    9     <font color="green"><?=$_SESSION['flash']['notice']?></font><br><br> 
    10 <? endif; ?> 
    11 <? if( array_key_exists('flash',$_SESSION) 
    12        && array_key_exists('error',$_SESSION) ): ?> 
    13     <font color="red"><?=$_SESSION['flash']['error']?></font><br><br> 
    14 <? endif; ?> 
     7<?php if(Session::isset_flash('error')): ?>                                      
     8    <font color="red"><?php echo Session::flash('error') ?></font>    
     9<?php elseif(Session::isset_flash('notice')): ?>     
     10    <font color="green"><?php echo Session::flash('notice') ?></font>    
     11<?php endif; ?>  
    1512 
    16 <?=$content_for_layout?> 
     13<?php echo $content_for_layout ?> 
    1714         
    1815</body>