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:

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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support