Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Range limit with model

I read the documentation for model to apply limit i.e.

 $data = City::find(["limit"=>$start]);

here $start is a variable. I have to apply range like 0 to 100 as sql query select * from city limit 0,100. How do I do that?



68.3k
Accepted
answer

Add offset parameter. More info here: https://docs.phalconphp.com/de/3.2/db-models