Welcome Guest, Not a member yet? Register   Sign In
Create Custom Business Logic Classes [No Libraries]
#5

(09-19-2019, 12:35 PM)sharadrsoni Wrote: Are library classes singleton? and can I have a directory structure for the library?

Yes. I never tried to put a library in a subdir but I'm pretty sure it works. You can do it for controllers, models and views, so it should work for libraries too :

https://codeigniter.com/user_guide/general/creating_libraries.html
https://codeigniter.com/user_guide/gener...ng-a-model
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
RE: Create Custom Business Logic Classes [No Libraries] - by includebeer - 09-19-2019, 12:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB