CodeIgniter Forums

Full Version: implementing users
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]jparent[/eluser]
Hi, I'm implementing a users module:

a basic user has:
-name
-email
-password
-photo

but depends on the application I want to extend that user and add other fields like company, job, identify number, suscribed to newsletters,...

I've been thought about to create a library for base_user and other for extended_user that extends from base_user. I have looking for polimorfims, interfaces etc... but I'm not sure which is the right way to do that.

Somebody could give me an idea??? Thanks!

El Forum

[eluser]jparent[/eluser]
nobody? which is the best strategy to change minimal the code?