best way to manage users app
hi.
what is the best way to create a user manager page for my app??
is creating a custom/adminpanel page???
i should create a user model, then
a page for each crud step...?
thank
PS: this is an excelent aproach. to create php apps, so thanks. i'll try it, may be it become my permanet framework . great!!
Hello, yes you need to create model for user management and admin panel will make an interface for crud operations for admin.
On frontend you will need to create views files for crud too (if you need them).
<? class Accounts extends Model { protected $name = "Accounts"; protected $model_elements = array( array("Active", "bool", "active", array("on_create" => true)), array("Registration date", "date_time", "date_registration"), array("Last visit date", "date_time", "date_last_visit", array("now_on_create" => false)), array("Name", "char", "name", array("required" => true)), array("Email", "email", "email", array("required" => true, "unique" => true)), array("Password", "password", "password", array("required" => true, "letters_required" => true, "digits_required" => true)), array("Phone", "phone", "phone") ); } ?>
Hi again.
yes i tried it, so another question.
the tables are created automaticaly after i create the model and set it in the config/model file??
or is a manual task???
or maybe i must to sync it in some way??
thank for the answer!!!
Hi again.
yes i tried it, so another question.
the tables are created automaticaly after i create the model and set it in the config/model file??
or is a manual task???
or maybe i must to sync it in some way??
thank for the answer!!!
You can create table for the new model manually, or go to "My settings" in admin panel under root admin account (id=1) and at the bottom left corner you will see Migrations button.