开发者

Joomla path and URL for subdir installation

开发者 https://www.devze.com 2023-01-05 07:00 出处:网络
Does anyone know how can I get the path and URL of the Jo开发者_如何转开发omla installation relative to the document root and site domain? I am looking for the Wordpress correspondent of WP_CONTENT_DI

Does anyone know how can I get the path and URL of the Jo开发者_如何转开发omla installation relative to the document root and site domain? I am looking for the Wordpress correspondent of WP_CONTENT_DIR and WP_CONTENT_URL.

Thanks all, Bogdan

I managed to find that part of the URL using this piece of code: $installation_dir_in_url = substr(str_replace(DS, '/', JPATH_SITE), strlen($_SERVER['DOCUMENT_ROOT']));


Is this what you need:

 JURI::base()

Also check this Joomla documentations out http://docs.joomla.org/JURI

0

精彩评论

暂无评论...
验证码 换一张
取 消