sayedzaafir Posted November 8, 2018 Report Posted November 8, 2018 hi i have installed it but i get this error any idea to fix it thank you Warning: Invalid argument supplied for foreach() in /home/gulfairv/icrew.gulfair-va.com/core/templates/touchdownstats/touchdownstats_index.php on line 21 Quote
gio1961 Posted November 9, 2018 Report Posted November 9, 2018 Hi, try to see if it works. Greetings foreach($stats as $stat) to if($stats) foreach($stats as $stat) Quote
sayedzaafir Posted November 16, 2018 Author Report Posted November 16, 2018 thank you it worked Quote
LionHo Posted April 16, 2019 Report Posted April 16, 2019 (edited) Hi...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. pcb assemblies Edited June 5, 2019 by LionHo 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.