2 Questions on :"$this->" and a class

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

UrButtFullOfArr0ws wrote:Does the output look familiar? :lol: :lol: :lol: :lol:

Code: Select all

Goto_page Previous  1, 2, 3 ... 28, 29, 30 ... 36, 37, 38  Next
No.. What's it similar to? Whatever it is, I don't like it. :P
It's interesting, and does look hard to make, but who cares about the first few, middle few, and last few? If anything, just add a "first" and "last" button, and go back to your other way.


And I didn't read it all, but your "append_sid" should only be called once and saved into a variable rather than called all of the time.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

That is phpBB pagination code, and before you go around using it, make sure you know what you are doing. You do not need to use append_sid if you are not using their sessions code. But their paging code is a little off. I am tweaking it at the moment to use a class structure instead of procedural. It is good code, but it can be better.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

I thought "sid" didn't sound like a page number... :P
Post Reply