CrustyDOD Posted January 25, 2007 Share Posted January 25, 2007 Hey Somehow config_load is not working.. conf file: # info url infoUrl = "http://test.com" header.tpl {config_load file="templates/default/includeme.conf"} {#infoUrl#} Result = nothing.. Even debug says nothing was loaded.. eh? Anyone sees a mistake? 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 25, 2007 Share Posted January 25, 2007 add ?display_errors=on to the url to see if you have any errors, though i am not spotting anything wrong with your test code. Ive had this issue before, but i am not sure what the solution is. Maybe a config issue within the smarty class? 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted January 25, 2007 Share Posted January 25, 2007 btw, have you tried an absolute path like /home/USERNAME/public_html/templates/defualt/config.conf Try with and without the preceding / 0 Quote Link to comment Share on other sites More sharing options...
balebond Posted March 27, 2008 Share Posted March 27, 2008 bumping... I'm having exact same problem. no debug errors... absolute pathing doesn't work. I just want to set a global variable that any template file can access. 0 Quote Link to comment Share on other sites More sharing options...
balebond Posted April 2, 2008 Share Posted April 2, 2008 So I have a work around. Which is basically to write variables to a .txt file from my admin addon instead and use the {php} {/php} tags within header.tpl something like below. {php} $filename = "templates/mytemplatename/systemstate.txt"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); $this->assign('systemstateid',$contents); {/php} So, this works for now seeing as I only have one variable I want to retrieve in this file. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.