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.
在 elgg 1.7.10 中,我必须为所有图像使用绝对完整路径,如何在 mod 文件夹中使用插件的相对路径?
谢谢!
只需使用“/mod/[pluginname]/[graphic_folder]/image.jpg”
如果您要问其他问题,请告诉我。
谢谢。
试试 elgg_get_plugins_path() 。'文件夹名/pages/add.php';