21280 Posts in 5729 Topics by 2600 members
| Go to End | ||
| Author | Topic: | 1575 Views |
-
Re: Dispalay pages...(paging)

3 March 2011 at 11:56pm
why this don't work?
function getResults() {
$iPageLength = 5;
$dos = DataObject::get('Problema');$dos->setPageLength($iPageLength);
//echo $dos->TotalPages();
$i=5;
$dos->getRange($i*$iPageLength,$iPageLength);
}this code place in dataobjectmanager... i need a controler? in my dataobjectmanager?
-
Re: Dispalay pages...(paging)

4 March 2011 at 1:32am
XXXXPage_Controller - the controller of the page you want this on or in Page_Controller if you want this "control" available on all pages.
this is based on a guess because "this don't work" is not a very helpful description of the result of using this as a function - you need to detail where the code is placed, template code calling it and if there is no output (as I assume from this) then say that.
| 1575 Views | ||
| Go to Top |


