Thanks guys for the kind words, i'm taking them as kind :). To give some context and to prove that i'm not that dumb, i saw the error as soon i posted the question. i was giving the pagination function on a controller that didn't call the view where i needed the pagination.