Add header and footer to file in sub-directory

I have a search engine in a sub-directory (/search) for my CS-Cart blog only. I want to embed the search results between my store’s header and footer. The search engine results are in a PHP file (search/index.php).

I tried using iframe but can’t figure out how to send the form search term into an iframe.

I considered installing the search engine in root directory and search file embedded in smarty block but PHP code in smarty block doesn’t work.

Is there a way to add the store header and footer to search/index.php?

I am afraid, there is no esy way to do it

See my post Consolidation of code tips and look for the topic with "… the dodgy way … " in the title.

1 Like