ahughes3 Posted October 26, 2012 Report Posted October 26, 2012 Hi Folks, I'm hoping someone can lend a hand. I am trying to call up a page on our site using the php script to open it, however its not working. My knowledge of php isn't strong enough to understand what I'm missing. The feet page file (html) in question is being stored in a fleet module folder, which I am then calling up using the script below. Everytime I try the script though I get an error saying "error module does not exist". Any help would be much appreciated. class Fleet extends CodonModule { public function index() { Template:Show('fleet_main.tpl'); }} Quote
Moderators Parkho Posted October 26, 2012 Moderators Report Posted October 26, 2012 You need to create a folder called "Fleet" in core/module and inside that folder make a file called "Fleet.php" then open the fleet.php and paste the above code in there. Also, you need to place the "fleet_main.tpl" in you skin folder or in core/templates if you're using the default skin. Remember, the module folder and the file inside that are case sensitive. To create a link to call the module use the following code: < a hre="<?php echo url('/fleet') ;?>">Fleet Page</a> Quote
ahughes3 Posted October 26, 2012 Author Report Posted October 26, 2012 Brilliant Parkho, thanks for your help. Your answer worked perfectly. Another item on the list of 127 things we need to sort :-) Quote
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.