04-17-2009, 10:13 PM
|
#3 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Ok I got it working but I had to remove the INT from the function calls.
So in the HTML, I had to do this:
$display_links = $pagination->getPageLinks($page_last,$get_page);
Instead of:
$display_links = $pagination->getPageLinks(int $page_last, int $get_page);
And in the class, I had to use this:
public function getPageLinks($page_last, $get_page) {
Instead of this:
public function getPageLinks(int $page_last,int $get_page) {
But I don't understand, I thought it was proper coding to type hint the attributes?
|
|
|
|