Thanks! Glad you enjoyed it. Not sure why I couldn't get higher res previously, but will continue to upload at 1080p unless something goes wonky for me.
hi lonnie, it is possible to have 2 different login forms / functionality? one for normal users eg. example.com/login (only users with role user can login) and one for admins example.com/adminlogin (only users with role admin can login). And 2 seprate views one for each login page. any hints? thanks in advance
Libraries in CI are just classes. Services provide a way to access that class that allows you to do any initial setup, and also act as a factory, in that they'll only give a single, shared instance of the class no matter how often it's called, unless you tell it otherwise.
@@ignitedcode3091 thank you. If i understand you right, then i use a service only for calling the class (library) and in a library itself is all the logic? Is this the preferred way or can the libraries called also directly?
can you please make a video tutorial on extending validation class for form validation. like CI v3 config/form_validation.php file grouping. most helpful. also has a thread on forum.
Hello, I dont understand why we should use services when we can simply create a class with methods in it ? Don't really get it. I mean for me it looks like programming becoms very complicated with for me useless things like this one. Guess I am wrong but can someone explain what is the pros of these Services in particular here ?
Services are basically a "class with methods in it". The advantages are a) it's a centralized place where any class setup can happen before it gets returned, b) it returns a single instance (by default) to increase performance and reduce memory usage, c) if you want to swap out a core framework library for a modified version of your own, you can override the service to return your class and the system will use it. You don't need to use it for your own stuff if you don't want. It's often not necessary and simply calling new MyClass() works fine for a lot of cases.
good soundquality, verry confortable speed of teahing.. a video about how to i.e import other projects using composer and implamenting them in codeigniter
Watching your videos is just too awesome. I tend to understand everything you talk about at an instance, maybe you communicate to my brain better than the documentation I read almost everyday. I just wish you could be uploading more videos. I really want to use the event class in codeigniter 4 but I really haven't understand it that much. I believe a 3 minutes video from you will definitely help me on that. I also want to make a small donation to you so you get motivated n make more videos for we codeigniter developers. Send me your BTC address. I really appreciate your work. May God bless you Boss
you should upload a complete series on codeIgniter 4 from basic. :-)
Thanks Lonnie for the explanation. Looking forward for more videos like this.
Glad you found it useful!
Please create project blog with vuejs 3 and codeigniter4
Thank you for the videos. I would love to see an example Smarty implementation as you describe. I am in need of it for a project I am working on.
Thank you. By the way, can you tell what editor you used?
I use PHPStorm.
@@ignitedcode3091 thank you..!!
Topic covered in very well way. Quality of videos also increased 1080p available now thanks Lonnie.
Thanks! Glad you enjoyed it. Not sure why I couldn't get higher res previously, but will continue to upload at 1080p unless something goes wonky for me.
hi lonnie, it is possible to have 2 different login forms / functionality? one for normal users eg. example.com/login (only users with role user can login) and one for admins example.com/adminlogin (only users with role admin can login). And 2 seprate views one for each login page. any hints? thanks in advance
Great tutorial, really helpful.
what are the difference between services and libraries?
Libraries in CI are just classes. Services provide a way to access that class that allows you to do any initial setup, and also act as a factory, in that they'll only give a single, shared instance of the class no matter how often it's called, unless you tell it otherwise.
@@ignitedcode3091 thank you. If i understand you right, then i use a service only for calling the class (library) and in a library itself is all the logic? Is this the preferred way or can the libraries called also directly?
Thank you for the video, it is very helpful.
can you please make a video tutorial on extending validation class for form validation. like CI v3 config/form_validation.php file grouping. most helpful. also has a thread on forum.
Do you mean adding new rules, or adding functionality to the existing class?
Hello, I dont understand why we should use services when we can simply create a class with methods in it ? Don't really get it. I mean for me it looks like programming becoms very complicated with for me useless things like this one. Guess I am wrong but can someone explain what is the pros of these Services in particular here ?
Services are basically a "class with methods in it". The advantages are a) it's a centralized place where any class setup can happen before it gets returned, b) it returns a single instance (by default) to increase performance and reduce memory usage, c) if you want to swap out a core framework library for a modified version of your own, you can override the service to return your class and the system will use it. You don't need to use it for your own stuff if you don't want. It's often not necessary and simply calling new MyClass() works fine for a lot of cases.
Toma Tomov
You couldn't think so if you try to see how much Laravel is complexifying things.
It is good but left me thirsty for more details on the use cases and examples.
Honestly, on revisiting, i found that you were taking to yourself.
good soundquality, verry confortable speed of teahing.. a video about how to i.e import other projects using composer and implamenting them in codeigniter
Watching your videos is just too awesome. I tend to understand everything you talk about at an instance, maybe you communicate to my brain better than the documentation I read almost everyday. I just wish you could be uploading more videos. I really want to use the event class in codeigniter 4 but I really haven't understand it that much. I believe a 3 minutes video from you will definitely help me on that. I also want to make a small donation to you so you get motivated n make more videos for we codeigniter developers. Send me your BTC address. I really appreciate your work. May God bless you Boss