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!
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
Post a Comment