RSS Feed/News How do I format this template link?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,752
Points
823

Reputation:

I have my form action:

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}...

Read more

Continue reading...
 
Status
Not open for further replies.
Top