Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Joomla 1.5 中有以下 Jumi 代码
现在我想从我的媒体文件/home/content/49/6333949/html/images/posters中引用图像位置,即Media/images/posters.
/home/content/49/6333949/html/images/posters
Media/images/posters
是否有任何 PHP 变量可以在不对其进行硬编码的情况下获得此完整路径?
如果要获取 joomla 网站的根路径,可以使用以下内容:
"JURI::base()" : 是获取项目 HTTP 路径的方法; “JPATH_BASE”:是获取项目真实路径的常量;