grantus
Active member
I have my form action:
My url is like this: newbattle/cpanel/r/24496/add. Since the form is linking to newbattle/cpanel/save it's not working. How should the link be formatted since I have a dynamic URL?
So I tried to test (I'm not sure how to format with the "/save" at the end either):
Which gives me the url like this: newbattle/cpanel/?r=24496 which doesn't work.
When I put the url directly into the link like this it works: newbattle/cpanel/r/24496/save
Code:
<xf:form action="{{ link('newbattle/cpanel/save', $newbattle) }}" upload="true" ajax="true" class="block">
My url is like this: newbattle/cpanel/r/24496/add. Since the form is linking to newbattle/cpanel/save it's not working. How should the link be formatted since I have a dynamic URL?
So I tried to test (I'm not sure how to format with the "/save" at the end either):
Code:
<xf:form action="{{ link('newbattle/cpanel/', null, {'r': $receiver_user_id}, $newbattle) }}" upload="true" ajax="true" class="block">
Which gives me the url like this: newbattle/cpanel/?r=24496 which doesn't work.
When I put the url directly into the link like this it works: newbattle/cpanel/r/24496/save