模板有两个定义了两个常量 父类已经定义好了

            //模板常量
            $dirStr=dirname($_SERVER['SCRIPT_NAME']);
            $dirStr=$dirStr=='\\'?NULL:$dirStr;
            $appPath = 'http://'.$_SERVER["HTTP_HOST"].$dirStr.$appUrl;
            $appUrl = WebRoot.'/';
            $this->view->assign('APP_URL',$appUrl);
            $this->view->assign('APP_PATH',$appPath);

用完整链接引入css

<link href="{<$APP_PATH>}V/common/css/style.css" rel="stylesheet" type="text/css" />

 

相关文章:

  • 2022-01-16
  • 2021-12-17
  • 2022-12-23
猜你喜欢
  • 2022-01-05
  • 2022-02-06
  • 2021-10-21
  • 2022-12-23
  • 2021-10-11
  • 2021-07-25
  • 2021-06-14
相关资源
相似解决方案