I've passed a parameter from one page to another anit recieves it OK (will echo out and display within the page fine).
I have also used requires for certain repeated elements of common pages.
I'm now trying to use the paramater to call one of a set of specific menu lists that are tailored to the parameter being passed between pages.
Code: Select all
echo "require('nav_".$PPP.".php')";But it fails to call in the menu item correctly.
I can get it to create the following if $PPP passes 1
Code: Select all
<?php
require('nav_1.php');
?>I can copy its output into a page and open that page and menu list 1 will appear.
Obviously this is not much use for a dynamic menu system.
Suggestion as to how I may get it to execute rather than display much appreciated.
Cheers,
Bob