oh also your action should be changeAppCulture if your method is
executeChangeAppCulture
James
On Oct 14, 2008, at 12:39 AM, James wrote:
> function needs to be called executeChangeAppCulture()
>
> James
>
>
> On Oct 14, 2008, at 12:18 AM, Reynier Perez Mira wrote:
>
>>
>> Hi every:
>> I have this routing defined:
>>
>> cambiar_cultura:
>> url: /change/lang/*
>> param: { module: geslicsoft, action: ChangeAppCulture }
>> requirements: { lang: (?:es|en|fr|it) }
>>
>> I have this link in my template:
>> link_to
>> (image_tag
>> ('icn_spanish
>> ',array
>> ('title'=>__('espanol'),'alt'=>__('espanol'))),'@cambiar_cultura?
>> lang=es');
>>
>> I have this method in my class:
>> public function ChangeAppCulture($request)
>> {
>> $this->getUser()->setCulture($request->getParameter('lang'));
>> }
>>
>> Why when I click in that link I get this error:
>>
>> [sfError404Exception]
>> Action "geslicsoft/ChangeAppCulture" does not exist.
>>
>> Cheers and thanks in advance
>> Ing. Reynier Pérez Mira
>> Grupo de Soporte al Desarrollo - Dirección Técnica IP
>>
>> >>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---