امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
My addon extends threads controller as well as xf_threads table and has its own route.
My goal is to "override" links to threads in all templates, for example:
Code:
So that conditionally, it can use the correct route and return the overridden link if the thread is the extended type.
I know I can use assertCanonicalUrl in the controller but wondering if I can take it a step further.
I think what I'll need to do is create a new event listener for...
Read more
My goal is to "override" links to threads in all templates, for example:
Code:
link('threads', $threads)So that conditionally, it can use the correct route and return the overridden link if the thread is the extended type.
I know I can use assertCanonicalUrl in the controller but wondering if I can take it a step further.
I think what I'll need to do is create a new event listener for...
Read more
