What's new

Closed PHP

Status
Not open for further replies.

FinestWork

Honorary Poster
Joined
Aug 31, 2019
Posts
515
Reaction
244
Points
202
Hey there guys, ask ko lang kung ano diskarte niyo or best practice pag may multiple users ka?

Sa case ko, ang users ay Admin | Student | Teachers

Bali 'yung main question is kailangan ko pa ba gumawa ng separate html file for a specific user?

Thanks in advance!
 
Yung nakita kong approach is same template for all user roles, then if statement ko lang if meron rights to view each user roles sa desired feature or function na meron sa app mo.
 
sa tingin ko, malabo. ma iinvoke lang yung function or feature if pasok yung user role sa if statement mo. other wise walang mang yayari sa server sa process.

advantage cguro, mas madali mong ma maintain code mo accross users.
 
Same strat here. Select optional lang sa user roles tapos control structures nalang sa view kung anong user ang selected. Bale isang template lang din.
 
Depende rin kung magkaiba talaga ang features para sa student, teacher at admin, puwedeng separate directory sila.
 
Status
Not open for further replies.
Back
Top