LPH
Well-known member
I'm curious if the public type in router is necessary. The type was missing in code I wrote a few years ago but the code still appeared to work. Hovering over the router() with PhpStorm shows null | string.
I went ahead and added the public type but am really curious what it does since 'admin' is the other type.
I went ahead and added the public type but am really curious what it does since 'admin' is the other type.
PHP:
XF::app()->router('public')->buildLink( 'canonical:threads', $thread )