Is the public type in router necessary?

  • Thread starter Thread starter LPH
  • Start date Start date

LPH

Guest
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.

PHP:

XF::app()->router('public')->buildLink( 'canonical:threads', $thread )

Continue reading...

Continue reading...
 
Top