Ignore:
Timestamp:
08/27/10 17:14:12 (18 months ago)
Author:
aarkerio
Message:

Helper updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/app/views/elements/userform.ctp

    r2326 r2486  
    11<?php 
    22#debug( $this->data ); 
    3 if ($this->data['User']['id'] != $session->read('Auth.User.id')):   #security check 
     3if ($this->data['User']['id'] != $this->Session->read('Auth.User.id')):   #security check 
    44    echo $this->__getSupport(); 
    55endif; 
     
    1313echo $this->Form->hidden('Profile.modified', array('value'=>'now()')); 
    1414echo '<fieldset>'; 
    15 echo '<legend>'.$session->read('Auth.User.username') .'\'s '.__('profile', True).'</legend>'; 
     15echo '<legend>'.$this->Session->read('Auth.User.username') .'\'s '.__('profile', True).'</legend>'; 
    1616echo $this->Html->div(Null, '<b>'.$this->data['User']['email'].'</b>'); 
    1717echo $this->Form->input('User.name', array('size' => 35, 'maxlength'=>50));  
     
    2525echo $this->Form->input('Profile.matricula', array('size'=>20,'maxlength'=>20,'title'=>__('If you are student, write your matricula number', True))); 
    2626 
    27 if ( $session->read('Auth.User.group_id') < 3):  # admin and teachers 
     27if ( $this->Session->read('Auth.User.group_id') < 3):  # admin and teachers 
    2828    echo $this->Form->input('Profile.quote', array('size' => 70, 'maxlength' => 150, 'label'=>__('Quote', True))); 
    2929    echo $this->Form->input('Profile.name_blog', array('size' => 45, 'maxlength' => 150, 'label'=>__('eduBlog name', True))); 
Note: See TracChangeset for help on using the changeset viewer.