$_GET inside a PHP class
Posted on 2010-11-29
I have a theoretical question about a class construction in PHP.
Let's say i want to build a pagination class and i want to handle user input inside the class
(buttons - Next, Prev). I imagine i would have to call the script again $PHP_SELF when pressing
next or Prev button, and then through $_GET display the required set of records, so can I
construct my script like this example:
.. header etc.
mypagination = new Page;
I mean, is it a common approach ?. Would it matter that new Page, would be executed each
time user clicks Next, Prev buttons ?