امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
So, following the Building with XenForo 2 videos I created a Notes add-on. Now I would like to modify it to my needs. A simple modification - to replace a 'Title' field with a 'Fishing date' field. As I understand I need to modify my custom entity and also a setup file. So regarding a custom entity - I just replace
Code:
with
Code:
...
Read more
Code:
'title' => ['type' => self::STR, 'maxLength' => 255, 'required' => true, 'censor' => true],with
Code:
'fishing_date' => ['type' => self::UINT, 'default' => \XF::$time],...
Read more
