امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
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:
I tried directly, I can see the phrase updated in database, but not in template. How to do it correctly?
Code:
کد:
$phrase = \XF::finder('XF:Phrase')->where('title', '=', 'xxxxxxxx')->fetchOne();
if ($phrase) {
$phrase->phrase_text = 'my phrase';
$phrase->save();
}
