flynryan692 Posted May 8, 2011 Report Share Posted May 8, 2011 Tried searching this but didn't find anything. :/ What I want to do is make pages for each airline I have and then on that airlines page display all the pilots with that airlines code... I already made the pages (folder in the modules folder and a new .tpl) but I'm not sure how to create the code for the roster on each page. Any ideas? Quote Link to comment Share on other sites More sharing options...
Jeff Posted May 8, 2011 Report Share Posted May 8, 2011 Can I ask you to post what you have in the Modules one, I added all of mine to /pages but I need to pull some information for it, but you can't use .php in the /pages.tpl Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted May 8, 2011 Moderators Report Share Posted May 8, 2011 you can display php in the pages just do it in source view, one word of caution if you edit it do it directly at the server not using the admin interface or it converts the code. Quote Link to comment Share on other sites More sharing options...
flynryan692 Posted May 11, 2011 Author Report Share Posted May 11, 2011 Can I ask you to post what you have in the Modules one, I added all of mine to /pages but I need to pull some information for it, but you can't use .php in the /pages.tpl In /modules I have a php file named EXACTLY the same as the folder in /modules and the php file contains this: <?php /** * Herp Derp */ class about extends CodonModule { public function index() { Template::Show('about.tpl'); } } ?> Then in my skin folder I have the corresponding .tpl file, as you see here it is "about.tpl" Anybody able to help me with the roster? Quote Link to comment Share on other sites More sharing options...
flynryan692 Posted June 10, 2011 Author Report Share Posted June 10, 2011 Bump. I'd really like to learn how to do this. Really, I want to know how to pull information for each airline, since I'll be setting up stats on each of my airlines (stats like bids for the airline, obviously the roster, latest flight by the airline). There must be a way to get airline specific information. 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.