HeatMiseR Posted December 16, 2011 Share Posted December 16, 2011 Hello... I was looking for an easy way to customize the look of the default store by adding a background image and a header that matches the rest of our website. I made changes to global.css for the background and added an include to the index.php file for the header. The site looks the way I want it but I have run into a few issues with the php include for the header. Some, but not all, functions with the site only show the header and not the rest of the page that should be displayed. Here's the code I changed: include('header.php'); require(dirname(__FILE__).'/config/config.inc.php'); ControllerFactory::getController('IndexController')->run(); One of the functions that doesn't work unless I remove the include is logging out of your account. After clicking on the logout link you only get the included page and nothing else. This doesn't occur throughout the site, most everything works the way it should... As you can tell, I am far from a php [spam-filter]... Any help or suggestions with the would be appreciated! Thank you! Link to comment Share on other sites More sharing options...
El Patron Posted December 16, 2011 Share Posted December 16, 2011 try this instead: include(_PS_ROOT_DIR_.'/header.php'); Link to comment Share on other sites More sharing options...
HeatMiseR Posted December 17, 2011 Author Share Posted December 17, 2011 I changed the line to your suggestion... The header I use doesn't display at all now but the store shows up... The error displayed at the top of the page is: Warning: include(_PS_ROOT_DIR_/header.php) [function.include]: failed to open stream: No such file or directory in /home/content/31/6949531/html/gearstore/index.php on line 28 Warning: include() [function.include]: Failed opening '_PS_ROOT_DIR_/header.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/31/6949531/html/gearstore/index.php on line 28 Link to comment Share on other sites More sharing options...
HeatMiseR Posted December 17, 2011 Author Share Posted December 17, 2011 The issue isn't with the header showing up... It shows up fine on all of the pages... It's just that a few functions, such as logging out of your account, fail to work correctly with the include added to index.php. Link to comment Share on other sites More sharing options...
El Patron Posted December 17, 2011 Share Posted December 17, 2011 that was my only guess without testing something like this on my localhost I just don't have enough experience to have much more to offer...suerte! Link to comment Share on other sites More sharing options...
HeatMiseR Posted December 17, 2011 Author Share Posted December 17, 2011 I appreciate the help, thank you!! Link to comment Share on other sites More sharing options...
Recommended Posts