RSS Feed/News Call message in static method

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

Reputation:

How to call message method inside a static method?
This also extends for error, redirect, buildlink, etc, getting undefined method.

Code:

\XF::app()->message(\XF::phrase('some message'));

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