Variables de Entorno
Versión 2 (Guillermo Zdanowicz, 30/12/2011 08:39)
1 | 1 | Guillermo Zdanowicz | h1. Variables de Entorno |
---|---|---|---|
2 | 1 | Guillermo Zdanowicz | |
3 | 1 | Guillermo Zdanowicz | $this->getUser()->getProfile()->getIdsede() //un ejemplo para obtener datos |
4 | 2 | Guillermo Zdanowicz | |
5 | 2 | Guillermo Zdanowicz | en formularios se toma la variable |
6 | 2 | Guillermo Zdanowicz | |
7 | 2 | Guillermo Zdanowicz | sfContext::getInstance()->getUser()->getAttribute('nombrevariable') |
8 | 2 | Guillermo Zdanowicz | |
9 | 2 | Guillermo Zdanowicz | en el action se puede asignar |
10 | 2 | Guillermo Zdanowicz | |
11 | 2 | Guillermo Zdanowicz | $this->getUser()->setAttribute('nombrevariable',$mivalor); |