Show
Ignore:
Timestamp:
02/20/08 19:08:38 (11 months ago)
Author:
aarkerio
Message:

Update views

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/users_controller.php

    r241 r242  
    22/** 
    33*  Karamelo E-Learning Platform 
    4 *  Chipotle Software 2002-2007  
     4*  Chipotle Software 2002-2008 
    55*  GPL manuel<arroba>mononeurona<punto>org 
    66*/  
     
    334334    //$this->Group = new Group; 
    335335    $conditions = array("id"=>'>1', "id"=>"<5"); 
    336     $this->set('groups', $this->User->Group->generateList($conditions, 'name', null, '{n}.Group.id', '{n}.Group.name')); 
    337     $this->set('Element', $this->Portal->statics()); // Using Portal component 
     336    // old: $this->set('groups', $this->User->Group->generateList($conditions, 'name', null, '{n}.Group.id', '{n}.Group.name')); 
     337 
     338    $this->set('groups', Set::combine($this->User->Group->find('all'), "{n}.Group.id","{n}.Group.description")); 
     339    //$this->set('Element', $this->Portal->statics()); // Using Portal component 
    338340     
    339341 }