func.php 240 B

12345678910111213
  1. <?php
  2. function getRequest()
  3. {
  4. return \Qii\Autoloader\Psr4::getInstance()->loadClass('\Qii\Request\Http');
  5. }
  6. /**
  7. * 生成link
  8. * @param string $url
  9. */
  10. function _link($url)
  11. {
  12. return getRequest()->url::getAbsluteUrl($url);
  13. }