RSS Feed/News How can I pass a value via callback?

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,674
Points
823

Reputation:

I'm doing a callback in the member_view template:

Code:

<xf:callback class="\\ILL\\Controller\\Store" method="getHtml"></xf:callback>

I have my method:

Code:

Code:
public static function getHtml() {
// query
return \XF::app()->templater()->renderTemplate('public:store_view', $viewParams);
}

Everything works except that the only issue is I need the user_id to be passed to getHtml. Is that possible?

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