Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

total_ris() functions don't work


Reply


2 Posts   666 Views

Avatar
bebabeba

Community Member, 193 Posts

10 December 2009 at 4:18am

Hi!

whit new silverstripe versions 3.4 I have an error in this point

$tot_records=$this->total_ris();

ERROR:The method 'total_ris' does not exist on 'Page_Controller'

Whit other version I haven't this problem..how can correct?
This function hel me in pagination and show me total number of result of my query.

Avatar
Willr

Forum Moderator, 5513 Posts

10 December 2009 at 12:10pm

Does your total_ris() function exist on pagecontroller class? post your code - page.php and might be able to help more.