Reynier Perez Mira wrote:
>> Where did you put this code? I mean in which method in the class?
>>
> Wich code? This one?
>
>
>>> $context = sfContext::getInstance();
>>> $user = $context->getUser();
>>>
>>> if (!$user->hasCredential('administrador')) {
>>> unset($this['estado_reservacion']);
>>> }
>>>
>
> In the config() from TbReservacionForm.class.php
>
> Cheers
> Ing. Reynier Pérez Mira
> Dirección Técnica IP
>
>
> --~--~---------~--~----~------------~-------~--~----~
>
Can you paste trace of the error?
Regards,
Zecho
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---