Welcome Guest, Not a member yet? Register   Sign In
How can I use a join to paginate the model?
#11

If you prefer a classsical CI way, it is better not to use the CodeIgniter Model.
You don't need it.

To be honest, the CodeIgniter Model is complex and difficult to understand.

As long as you use it simply, it is fine, but if you try to do something a little different, it may not work as well as you would like. Then you have to read and understand the Model code to make it work.

You can use more simple Model:
https://codeigniter4.github.io/CodeIgnit...l-creation
and manual pagination:
https://codeigniter4.github.io/CodeIgnit...pagination
Reply
#12

(This post was last modified: 12-02-2022, 11:57 AM by demyr.)

(11-22-2022, 11:36 PM)kenjis Wrote: If you prefer a classsical CI way, it is better not to use the CodeIgniter Model.
You don't need it.

To be honest, the CodeIgniter Model is complex and difficult to understand.

As long as you use it simply, it is fine, but if you try to do something a little different, it may not work as well as you would like. Then you have to read and understand the Model code to make it work.

You can use more simple Model:
https://codeigniter4.github.io/CodeIgnit...l-creation
and manual pagination:
https://codeigniter4.github.io/CodeIgnit...pagination

OK. I will give a try to this approach when I turn back to that part of my project. (I had to skip it to not to lose time.)
Reply




Theme © iAndrew 2016 - Forum software by © MyBB