MV framework logo
  • Architecture
  • Philosophy
  • Admin panel
  • Support
  • Feedback
Documentation
Download .zip version 3.2.0 from 25.12.2024
  • Architecture
  • Philosophy
  • Admin panel
  • Support
  • Feedback
Getting started
  • Installation and launch
  • Folder structure
  • Launching a simple website
  • Pre-installed models
  • SQLite getting started
  • System settings
  • Migrations
  • Debugging
Models
  • General principles of models
  • Data types
    • General characteristics
    • Boolean
    • String char
    • Numeric: int, float, order
    • Special string: url, redirect, email, phone
    • Password
    • Text
    • Date and time
    • File and image
    • Array of images
    • Choice enum
    • Parent
    • Many to one
    • Many to many
    • Group
  • Model setup
  • Simple models
  • Foreign keys
  • Trees
  • Many to many
  • Group
  • Records management
  • Managing simple models
  • Additional features
Templates and routing
  • General principles of templates
  • Router object
  • MV object
  • Create a new template
  • Output of data in template
  • Record object
  • Files and images
  • Date and time
  • Redirects and http
  • Sending email
  • Special methods
Forms
  • Creating forms
  • Setting up form fields
  • Validating form fields
  • Form security
  • Working with form data
  • Using data from models
  • Form methods
SQL queries
  • Query builder
  • Direct queries
  • Pagination
  • Sorting
  • Filtration
Additional
  • AJAX
  • Plugins
  • Caching
  • Security
  • Admin panel add-ons
Documentation
Getting started
  • Installation and launch
  • Folder structure
  • Launching a simple website
  • Pre-installed models
  • SQLite getting started
  • System settings
  • Migrations
  • Debugging
Models
  • General principles of models
  • Data types
  • Model setup
  • Simple models
  • Foreign keys
  • Trees
  • Many to many
  • Group
  • Records management
  • Managing simple models
  • Additional features
Templates and routing
  • General principles of templates
  • Router object
  • MV object
  • Create a new template
  • Output of data in template
  • Record object
  • Files and images
  • Date and time
  • Redirects and http
  • Sending email
  • Special methods
Forms
  • Creating forms
  • Setting up form fields
  • Validating form fields
  • Form security
  • Working with form data
  • Using data from models
  • Form methods
SQL queries
  • Query builder
  • Direct queries
  • Pagination
  • Sorting
  • Filtration
Additional
  • AJAX
  • Plugins
  • Caching
  • Security
  • Admin panel add-ons
MV tracker

best way to manage users app

Answers: 4
cris
15/07/2022 06:06

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!!

Reads: 1249
Answers: 4
Admin
15/07/2022 16:15

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")
    );
}
?>
Cris
16/07/2022 01:33

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!!!

Cris
16/07/2022 01:33

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!!!

Maxim
18/07/2022 14:04

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.

Answer the question
Submit answer
MV tracker

© 2014-2025, MV framework team

MV tracker project Github