[eluser]Tanax[/eluser]
[quote author="theprodigy" date="1238189680"]the code
Code:
$this->data['products'] = $this->Category->getProductsInCategory($id, $pConfig['per_page'], $offset);
if(is_array($this->data['products']))
is what I was talking about when I said you were treating it like an array. You have a large block of code being based on if $this->data['products'] is an array:
[/quote]
Ohh.. right.. Weird then how all of that code is actually run cause I get the specified css classes like tested in the if-block :S xD
Can I do like is_object ?
Thanks for pointing it out! Eventhough it works in some wierd way.
@TheFuzzy0ne-
This pagination class is quite useless then if it can't paginate data xD
I already have a great custom-written pagination class, how can I include it?
Also, I would be willing to "donate" this class to the library instead of the current pagination class.