$limit = $this->_app->getUserStateFromRequest('global.list.limit', 'limit', $this->_app->getCfg('list_limit'), 'int');
$limitstart = $this->_app->getUserStateFromRequest(OPTIOIN_NAME.'.limitstart', 'limitstart', 0, 'int');
$limitstart = ($limit != 0 ? (floor($limitstart / $limit) * $limit) : 0); // In case limit has been changed
EG : PAGES 1 -> Set number of records be shown to 10 , When I go to PAGES 2 -> Pagination is automatically set 10. I want to have different pagination settings for different pages.
What it does is, it keep a global variable. so even when I moved to another page those pagination settings are saved and applied. if I change OPTIOIN_NAME.'.limitstart'
or 'global.list.limit'
to something else it gives me Warning: Attempt to assign property of non-object in D:\wamp\www\jink\libraries\joomla\registry\registry.php on line 342
. How can I fix this without breaking the code.
Thanks