web relevant path Topic is solved

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
sNovak

web relevant path

Post by sNovak » Wed Sep 12, 2007 6:19 pm

I'm looking for a Joomla method something similar to

Code: Select all

JPATH_COMPONENT.DS.'anything.php' ;


but instead of returning the file system path, it returns the web relevant path.  Any help would be greatly appreciated..

Thanks in advance!

User avatar
jlleblanc
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Fri Aug 19, 2005 12:37 am
Location: Washington, DC / NoVA
Contact:

Re: web relevant path

Post by jlleblanc » Thu Sep 13, 2007 5:01 pm

I believe JURI::base() is what you're looking for.
Joseph L. LeBlanc: http://www.jlleblanc.com
Frontend components start here: /components/com_[name]/[name].php
Backend components start here: /administrator/components/com_[name]/admin.[name].php


Post Reply