{{=URL('controller','action', args=[arg1, arg2])}}
On May 20, 2012 10:18 AM, "Ashraf Mansour" <[email protected]> wrote:
> I tried this
>
> <h3 {{=A(' ..... ',_href=URL('action'))}}/param1/param2 </h3>
>
> and it did not work.:)
>
> what is the right way of doing it?
>
> On Saturday, December 3, 2011 7:37:58 PM UTC+3, Anthony wrote:
>>
>> <script>
>>> ....
>>> var param1 = 'value1' ;
>>> var param2 = 'value2'
>>>
>>> .... "{{URL(r=request,c='static',f=**'action')}}/"+param1¶m2
>>>
>> You need to use "=" to write the output of URL.
>>
>> {{=URL(...)}} + '/' + param1 + '/' + param2
>>
>> Anthony
>>
>>