SkilledPilotA320 Posted October 27, 2011 Report Share Posted October 27, 2011 Hello guys, does any one knows how to make top 10 touch down list? currently i have the following Touch down page. http://airindiavirtual.com/index.php/Touchdownstats Thank You Hope Some one help me! Quote Link to comment Share on other sites More sharing options...
Daniel Gallagher Posted October 27, 2011 Report Share Posted October 27, 2011 To show all the landing stats currently in the datbase create a link to www.yoursite.com/index.php/TouchdownStats To show a limited number of stats from your database create a link to www.yoursite.com/index.php/TouchdownStats/top_landings/10 The "10" can be changed to however many you would like to see The most useful method of the data class would be to use TouchdownStatsData::get_all_stats() and TouchdownStatsData::get_stats('10') You can use these inside of one of your templates to bring back the data you want and display it as you wish. An example to fill a variable with data for use in your template you can use $this->set->('stats', TouchdownStatsData::get_stats('10')); in your module to pass the data to the template within the $stats variable. Then in your template use the $stats variable to do what you wish with the display. Try searching the forums before asking... http://forum.phpvms.net/topic/2989-touchdownstats-10/ Quote Link to comment Share on other sites More sharing options...
SkilledPilotA320 Posted October 27, 2011 Author Report Share Posted October 27, 2011 Thanks man!.. works great. 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.