Problem with counter in table |
I need to insert an auto incrementing number in a table.
The model is: PHP Code: public function players($limit, $offset) { The controller is: PHP Code: public function players($offset = 0) { The template is: PHP Code: {foreach $variable as $data} The template is in smarty template. How can I insert an auto incrementing number that continues to increase with changing page? And it can set within that foreach? Sorry for the inconvenience, but I just can not figure out how. Thanks for the answers. |
Messages In This Thread |
Problem with counter in table - by StratoKyke - 05-05-2015, 06:30 AM
RE: Problem with counter in table - by StratoKyke - 05-07-2015, 04:45 AM
RE: Problem with counter in table - by codinghamster - 05-07-2015, 06:54 AM
RE: Problem with counter in table - by StratoKyke - 05-07-2015, 07:20 AM
RE: Problem with counter in table - by codinghamster - 05-07-2015, 07:34 AM
RE: Problem with counter in table - by StratoKyke - 05-07-2015, 10:46 AM
|