a1amattyj Posted June 16, 2008 Share Posted June 16, 2008 Hello, My function: function LoadTemplate($template_name,$file){ return ("../templates/$template_name/$file"); } Directory Struct> index.php > file_get_contents(../templates/default/header.html) [function.file-get-contents]: failed to open stream: No such file or directory in functions/functions.php > The Function admin/index.php > Loads template fine templates are... templates/name/header.html So i take it that: "../templates/" is wrong? Thanks! Link to comment https://forums.phpfreaks.com/topic/110398-getting-right-link-in-function/ Share on other sites More sharing options...
zenag Posted June 16, 2008 Share Posted June 16, 2008 can u show ur code and pls explain in short what u need?? Link to comment https://forums.phpfreaks.com/topic/110398-getting-right-link-in-function/#findComment-566370 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.