Pagination manual override in model returns 0 items - Joomla! Forum - community, help and support
iam developing component , after debugging while found strange phenomen. in frontend can set pagination limit see defined limit of items. looks fine @ first seight.
because of getting clearer, had rewrite problem, becaue not legacy model previous thought.
i manual override of pagination in model. done function 'getpagination'. values of form eg. $limit = jrequest::getvar('limit', 0 , '', 'init'). when set pagination limit in frontend eg 5, $limit = 5 , work. when switch in frontend pagination next site, $limit 0 (the frontend pagination limit shows all) , problem come up: limitstart = 5 , listlimit = 0, results in returning 0 items.
what's wrong here? can help?
joomla version 3.3.6
because of getting clearer, had rewrite problem, becaue not legacy model previous thought.
i manual override of pagination in model. done function 'getpagination'. values of form eg. $limit = jrequest::getvar('limit', 0 , '', 'init'). when set pagination limit in frontend eg 5, $limit = 5 , work. when switch in frontend pagination next site, $limit 0 (the frontend pagination limit shows all) , problem come up: limitstart = 5 , listlimit = 0, results in returning 0 items.
what's wrong here? can help?
joomla version 3.3.6
Comments
Post a Comment