View Single Post
Old 04-17-2009, 10:13 PM   #3 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

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?
allworknoplay is offline  
Reply With Quote