Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用下面的代码,但它不起作用:('test'是我的子主题)
$image = file_directory_path() . "/sites/all/themes/test/images/brasil.png";
D7:
$image = DRUPAL_ROOT . "/sites/all/themes/test/images/brasil.png";
D6 和 D7:
$image = getcwd() . "/sites/all/themes/test/images/brasil.png";
D6 和 D7
global $base_url; $image = $base_url . "/sites/all/themes/test/images/brasil.png";