Skip to main content
Version: Fegg 4.x

Model::listMax

Set ListMax Parameter

Description​

public self Model::listMax( number $listMax )

Arguments​

NameData typeDefaultRemarks
$listMaxnumberLimit number

Example​

Controller
$model = new Model(false, array(
'table' => 'cms_news',
'id' => 'news_id',
'visible' => 'visible',
));

// Get max 5 records
$records = $model->listMax(5)->find();