MVC vs MVCS vs CodeIgniter |
Hi,
Reading this post Better than MVC. What do you think? I saw some messages about using CI that way and makes sense to me... Cheers.
Hi @FlavioSuar ,
I read the article you shared and found it absolutely enlightening. I wasn't familiar with the MVCS architecture, but the moment I finished reading it, it felt like love at first sight. I've always felt that MVC was a bit limiting, and I often fell into the trap of spreading business logic between models and controllers. Like Neo in The Matrix, I sensed something was off. Well-structured services in CodeIgniter are clearly the answer. Now everything makes sense, and I can't help but wonder why most frameworks don't adopt this architecture. I sincerely hope the CodeIgniter team will consider updating this section — https://codeigniter.com/user_guide/concepts/mvc.html — to reflect MVCS, as I believe it would better represent the strengths of this excellent (and perhaps overly modest) framework.
Exacltly!
Often I see posts here in the forum asking where to put the business logic, if in the models or in the controllers. And both options don't seem to be the right choice. Recently I saw some answers about using services, but I did think that it was just another option as CI don't forces you to use MVC. But now I've found MVCS, it feels the right choice. |
Welcome Guest, Not a member yet? Register Sign In |