JPATH vs JURI::root() - Joomla! Forum - community, help and support


hi folks

more of reminder self, might out, never know...

i discovered today difference between path , url.
it matters!

path of file different url of file

-------
// placed in protostar's index.php file
$path = jpath_root
echo $path // result : /applications/mamp/htdocs/some-test-site

// placed in protostar's index.php file
$path = jpath_administrator
echo $path // result : /applications/mamp/htdocs/some-test-site/administrator


// placed in protostar's index.php file
$path = jpath_base
echo $path
// result : /applications/mamp/htdocs/some-test-site

---------

// placed in isis's index.php file
$path = jpath_root
echo $path
// result : /applications/mamp/htdocs/some-test-site

// placed in isis's index.php file
$path = jpath_administrator
echo $path
// result : /applications/mamp/htdocs/some-test-site/administrator

// placed in isis's index.php file
$path = jpath_base
echo $path
// result : /applications/mamp/htdocs/some-test-site/administrator

this different using juri::root , things that.
the path actual location on computer.
the uri location server's perspective or that, anyway, different!






Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support