declaring a directory with php problem - Joomla! Forum - community, help and support
hi,
im having trouble getting piece of php code finding correct path image folder.
the relevant piece of code is:
the code suppose return images in declared base_url folder.
the directory want find located in:
/public_html/testsites/icp/templates/templatename/images/hero
the code located in body of templates index file located at:
/public_html/testsites/icp/templates/templatename/index.php
i know code works have used before, not in joomla template, problem way im declaring base url or how joomla interpreting it.
any ideas??
cheers.
im having trouble getting piece of php code finding correct path image folder.
the relevant piece of code is:
code: select all
$base_url = 'images/hero';
the code suppose return images in declared base_url folder.
the directory want find located in:
/public_html/testsites/icp/templates/templatename/images/hero
the code located in body of templates index file located at:
/public_html/testsites/icp/templates/templatename/index.php
i know code works have used before, not in joomla template, problem way im declaring base url or how joomla interpreting it.
any ideas??
cheers.
try using absolute path define images directory.
Comments
Post a Comment