Welcome Guest, Not a member yet? Register   Sign In
Can't understand CI4 services and factories! Lack of OOP knowledge ?
#1

Hello guys.
I have been following CI for many years. In fact since v2. I built a dynamic league site using v3 mainly based on procedural programming. But for many reason I have decided to create a new one entirely on v4 because it supports latest php updates and new way of routing and classes. 
But when I want to learn routings, services and factories it's like I have to remember and copy paste the code inside the file. Is it because I should learn OOP programming first?
I appreciate if you guys can guide me through. How can I improve my skills and resolve this so I can move forward and get along with the new stuff.
Thanks.
Reply
#2

(This post was last modified: 04-03-2022, 05:58 AM by kenjis.)

Services
https://codeigniter4.github.io/CodeIgnit...vices.html
Can you tell us what you don't understand?

I don't know what exactly you mean by OOP, but if you don't already know
what is described in the following site, I suggest you should learn about OOP.
https://www.w3schools.com/php/php_oop_what_is.asp
Reply
#3

Services in CodeIgniter 4 | Lonnie Ezell on Patreon
https://www.patreon.com/posts/services-in-4-20830710
Reply
#4

(04-03-2022, 04:10 PM)kenjis Wrote: Services in CodeIgniter 4 | Lonnie Ezell on Patreon
https://www.patreon.com/posts/services-in-4-20830710

Thanks alot Kenjis.
Lonnie's posts and articles explained these basic concepts in a simple and understandable ways. I think I start there.
Reply
#5

(This post was last modified: 04-06-2022, 04:25 PM by kenjis.)

The user guide in develop branch is updated.

Services
https://codeigniter4.github.io/CodeIgnit...vices.html

If there are something difficult to understand, let us know.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB