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();
}
Читать далее...