开发者

drupal template page DEFINE problem

开发者 https://www.devze.com 2023-02-15 10:56 出处:网络
hi my drupal site is http://test.example.com i have a template.php file in my theme folder define(\'S开发者_JS百科ITE_ROOT\',\'http://example.com/abcd/\');

hi my drupal site is http://test.example.com

i have a template.php file in my theme folder

define('S开发者_JS百科ITE_ROOT','http://example.com/abcd/');

i am using this SITE_ROOT for my custom functions

but echoing SITE_ROOT gives http://test.example.com

how is this happening.

plz help


Look for define('SITE_ROOT' in the whole drupal source code; it's probably defined somewhere in index.php or the config file.


thank you guys

i find the solution . i defined the SITE_ROOT in settings.php file and everything worked fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消