How can I pass a value via callback?

Status
This content is read-only, or is not open for further replies.

grantus

Guest
offline
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...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom