Log message #896941

# At Username Text
# Jul 18th 2009, 11:48 Phally i'm starting to like GIT
# Jul 18th 2009, 11:45 Phally alkemann: http://thechaw.com/bakery/commits/logs/4c07c9e421be6fff5877e15991c6b893457835ee..47fc47bb27963616e7a9b07cbcfd290b1a0398b9
# Jul 17th 2009, 19:58 techno-geek I am trying to start contributing for my first time. Is there anyone around that could please answer some basic questions on how you guys normally handle data in the db?
# Jul 17th 2009, 19:41 techno-geek gwoo, do you have any kind've docs on the plugins plugin?
# Jul 17th 2009, 19:13 Phally ~bin
# Jul 17th 2009, 19:13 Phally gwoo: still here?
# Jul 17th 2009, 18:31 Phally oh no, that was a stupid idea, because start might as well be 4000
# Jul 17th 2009, 18:27 Phally yeah, that is one of the problems and instead of passing $first to first(), $start - 1 would do
# Jul 17th 2009, 18:19 gwoo $start >= (int)$first
# Jul 17th 2009, 18:19 gwoo so maybe first() is not working right?
# Jul 17th 2009, 18:14 Phally so the modulus is in the right position, only the first() isn't called there
# Jul 17th 2009, 18:10 Phally the 1 is my fix
# Jul 17th 2009, 18:09 Phally in the numbers from that bin, 2-7 is the modulus
# Jul 17th 2009, 18:01 Phally i was try to adapt the condition for the if indeed, but always ended up with double 2
# Jul 17th 2009, 18:00 gwoo maybe the calculation for $start is wrong
# Jul 17th 2009, 17:59 gwoo and im thking this will make the code even clearner
# Jul 17th 2009, 17:59 gwoo i think how much gets passed to first and last methods needs to be relative to the modulus and current page
# Jul 17th 2009, 17:58 gwoo we need more test cases
# Jul 17th 2009, 17:56 Phally right
# Jul 17th 2009, 17:55 gwoo modules right?
# Jul 17th 2009, 17:55 gwoo 1-7 is the module
# Jul 17th 2009, 17:55 gwoo according to your ticket
# Jul 17th 2009, 17:55 gwoo Phally: that is not right
# Jul 17th 2009, 17:51 Phally the hardcoded 2 seems hardcoded but it is actually (first page + 1) which is always 2 as the opposite of (pageCount - 1)
# Jul 17th 2009, 17:44 Phally a lot of numbers, but it seems to give proper behavior: http://bin.cakephp.org/view/1518302476
# Jul 17th 2009, 17:35 gwoo and current page == 5
# Jul 17th 2009, 17:35 gwoo for example what happens if first == 5 and modulus == 5
# Jul 17th 2009, 17:35 gwoo because it seems to only take into account these tested cases
# Jul 17th 2009, 17:34 gwoo the fix though i think needs some work
# Jul 17th 2009, 17:34 gwoo i see the issue it points out
# Jul 17th 2009, 17:34 Phally *patch
# Jul 17th 2009, 17:34 Phally gwoo: how about the PaginatorHelper, do you agree on the path?
# Jul 17th 2009, 17:33 gwoo ok cool
# Jul 17th 2009, 17:33 Phally yes, i know what you mean
# Jul 17th 2009, 17:33 gwoo Phally: did I explain it well enough?
# Jul 17th 2009, 17:33 Phally very well, i will refactor it
# Jul 17th 2009, 17:32 gwoo $controller gets passed to the callbacks because those are the only places where it should be needed
# Jul 17th 2009, 17:32 gwoo it is hard to know how much of "controller" is really used when you just set a property to the value coming in from the callbacks
# Jul 17th 2009, 17:32 gwoo and set it to a member of the current class
# Jul 17th 2009, 17:31 gwoo to get it
# Jul 17th 2009, 17:31 gwoo use the initialize or startup method