MV framework logo
  • Architecture
    • Philosophy
    • Technologies
  • Admin Panel
  • Changelog
  • Support
  • Feedback
Download Version 2.6 from 07.10.2022
Documentation
  • Architecture
    • Philosophy
    • Technologies
  • Admin Panel
  • Changelog
  • Support
  • Feedback
Getting started
  • Installation and launch
  • System folders
  • Launch of simple website
  • Pre-installed models
  • System settings
Models
  • General principles of models
  • Data types
  • Model settings
  • Simple models
  • Foreign keys
  • Trees
  • Many to many
  • Group
  • Records management
  • Simple model management
  • Additional options
Views and routes
  • General principles of views
  • Router object
  • MV object
  • Index, default and 404 templates
  • Creating a new template
  • Data display in template
  • Object of Record class
  • Files and images
  • Date and time
  • Redirects
  • Email delivery
  • Special methods
Forms
  • Forms creation
  • Form fields settings
  • Form validation rules
  • Form validation process
  • Operations with form data
  • Using data from models
  • Form methods
SQL queries
  • Query constructor
  • Direct queries
  • Pagination
  • Sorting
  • Filtration
  • Upload from CSV files
Sessions and security
  • Work with sessions
  • AJAX
  • Security
  • Debugging
Plugins
  • General principles of plugins
  • Additions to admin panel
  • Caching
Documentation
Getting started
  • Installation and launch
  • System folders
  • Launch of simple website
  • Pre-installed models
  • System settings
Models
  • General principles of models
  • Data types
  • Model settings
  • Simple models
  • Foreign keys
  • Trees
  • Many to many
  • Group
  • Records management
  • Simple model management
  • Additional options
Views and routes
  • General principles of views
  • Router object
  • MV object
  • Index, default and 404 templates
  • Creating a new template
  • Data display in template
  • Object of Record class
  • Files and images
  • Date and time
  • Redirects
  • Email delivery
  • Special methods
Forms
  • Forms creation
  • Form fields settings
  • Form validation rules
  • Form validation process
  • Operations with form data
  • Using data from models
  • Form methods
SQL queries
  • Query constructor
  • Direct queries
  • Pagination
  • Sorting
  • Filtration
  • Upload from CSV files
Sessions and security
  • Work with sessions
  • AJAX
  • Security
  • Debugging
Plugins
  • General principles of plugins
  • Additions to admin panel
  • Caching

MV — PHP framework
for fast development

Compact PHP framework with admin panel

Download
Get started


  • Website content management with CMF
  • Object-oriented approach and MVC principles
  • Auto-generated Admin Panel
  • ORM and ready-to-use functional blocks (sorting, filtering, etc.)
  • Visual editor, images bulk upload and much more

Quick review

Work process starts with creation of Model - PHP class for managing SQL table. Fields of the model have different data types based on principles of web development.

class Articles extends Model
{
    protected $name = "Articles";

    protected $model_elements = array(
        array("Activation", "bool", "active", array("on_create" => true)),
        array("Name", "char", "name", array("required" => true)),
        array("Date", "date", "date", array("required" => true)),
        array("Content", "text", "content", array("rich_text" => true)),
        array("Images", "multi_images", "images")
    );
}

After PHP class and SQL table are ready, an interface becomes available in Admin Panel. You can create, edit, delete records, and also you will get a sidebar with filters to help you search particular records in long data list.


Selecting of template for requested URL is accomplished by Routing.

"article/*/" => "view-article.php"

To show model's data on the webpage a template file is being created.

<div id="inner">
    <p class="date"><? echo I18n :: formatDate($article -> date); ?></p>
    <h1><? echo $article -> name; ?></h1>
    <div class="text">
        <? echo $article -> content; ?>
    </div>
    <div class="gallery">
        <? echo $mv -> articles -> displayGallery($article -> images); ?>
    </div>
</div>

In MV framework templates generation is made by PHP itself to guarantee high speed of template processing and page generation. Record object based on ORM principles helps to link model's functions with template of a web page.

Main idea of MV is to provide a simplified and faster way to create websites and applications with the help of built-in CMF that allows to manage content in Admin Panel.

© 2012-2023, MV framework

MV tracker is based on open source MV framework
License