EPStore Posted March 6, 2011 Share Posted March 6, 2011 Hey guys, I'm trying to use conditional statements so that I would have a box show only in one page of my shop (and not the others). The box is the Articles box from the Article Manager contribution. And the page is specials.php. So, what I did is put this code at the top of includes/modules/boxes/bm_articles.php: if (basename($_SERVER['PHP_SELF']) == FILENAME_SPECIALS){ I also put the } at the end to close it. Now, when I try to access specials.php everything looks fine on my shop side... But when I try to enter ANY other page, I get this error: Fatal error: Class 'bm_articles' not found in C:\wamp\www\MyStore\includes\classes\osc_template.php on line 90 Any ideas? (btw, I'm using ver 2.3.1) Link to comment Share on other sites More sharing options...
EPStore Posted March 7, 2011 Author Share Posted March 7, 2011 Up. Please guys, any idea? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.