Variables de Entorno
Versión 2 (Guillermo Zdanowicz, 30/12/2011 08:39) → Versión 3/4 (Guillermo Zdanowicz, 01/02/2012 17:50)
h1. Variables de Entorno
$this->getUser()->getProfile()->getIdsede() //un ejemplo para obtener datos
en formularios se toma la variable
sfContext::getInstance()->getUser()->getAttribute('nombrevariable')
en el action se puede asignar
$this->getUser()->setAttribute('nombrevariable',$mivalor);
ALGUNOS PLUGINS REQUIEREN CORRER
php symfony plugin:publish-assets
esto crea links en carpeta web
$this->getUser()->getProfile()->getIdsede() //un ejemplo para obtener datos
en formularios se toma la variable
sfContext::getInstance()->getUser()->getAttribute('nombrevariable')
en el action se puede asignar
$this->getUser()->setAttribute('nombrevariable',$mivalor);
ALGUNOS PLUGINS REQUIEREN CORRER
php symfony plugin:publish-assets
esto crea links en carpeta web