pjs32 Posted May 2, 2009 Share Posted May 2, 2009 Ok so my understanding is that to add a module, the filename has to be the same as the module folder name... i.e if folder name is \my_module\ then the file in there has to be my_module.php Ok, so the problem I have is that my page interacts with other pages to function. But obviously it can't find these files because it looks for it where "addonmodules.php" is and not in the module folder.... If I adjust the link to the full URL, it works, but obviously loses the template (top nav, left nav etc etc) Anyone got any ideas? 0 Quote Link to comment Share on other sites More sharing options...
josh6025 Posted May 3, 2009 Share Posted May 3, 2009 you could use if($_GET['action'] == 'ACTION_NAME_HERE') { include 'FILENAME_HERE'; } the a href links than become <a href="'.$modulelink.'&action=ACTION_NAME_HERE">my addon module</a> for the main page of the addon you use if($_GET['action'] == '') { Your PHP code } This is how I do all my multipage addons 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.