Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

adding pages in a new folder


Recommended Posts

Hi all


Just a quick one that I really need help with, I would like to add new pages in a directory with in my site example: / partywedding/search_partywedding.php


I have put in the application_top.php define('FILENAME_search_partywedding', 'partywedding/search_partywedding.php');

And in my new category box i have <a href="<?php echo tep_href_link(FILENAME_search_partywedding); ?>">Bands (Wedding & Party)</a>


Which gives me the link and it does work, However im gettin errors listed below, Have I missed Something?


Warning: require(includes/application_top.php) [function.require]: failed to open stream: No such file or directory in /home/content/49/5416949/html/partywedding/search_partywedding.php on line 13


Fatal error: require() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/49/5416949/html/partywedding/search_partywedding.php on line 13

Link to comment
Share on other sites

by replacing require('includes/application_top.php'); in search_partywedding.php require('../includes/application_top.php'); I have told it to double back up to the root to find the required files however it still did not find includes/configure.php,


So i have created the includes directory in the partywedding directory and have copied the configure.php over. And i made one small change define('DIR_WS_INCLUDES', '../includes/'); again i have told it to search back from the root, This works however i feel that this is not the correct way of doing things!


could anyone assist?

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...