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.
精彩评论