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
- 26,860
- Points
- 823
Reputation:
How can I update any phrase by code?
I tried directly, I can see the phrase updated in database, but not in template. How to do it correctly?
Code:
Continue reading...
I tried directly, I can see the phrase updated in database, but not in template. How to do it correctly?
Code:
Code:
$phrase = \XF::finder('XF:Phrase')->where('title', '=', 'xxxxxxxx')->fetchOne();
if ($phrase) {
$phrase->phrase_text = 'my phrase';
$phrase->save();
}
Continue reading...