Welcome Guest, Not a member yet? Register   Sign In
implementing users
#1

[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!
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB