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

Unable to load

Answers: 1
Bu KHalifa
07/11/2020 18:49

i am getting this error on localhost. i made changes as mentioned to setup the setup file.

router -> defineRoute(); //If 1 was passed above, displays the data $debug -> displayInfo($mv -> router); ?>

<?
/**
 * MV - content management framework for developing internet sites and applications.
 * Released under the terms of BSD License.
 * http://mv-framework.com
 */
 
//Initial settings for setup of the project 
//Goes to Registry object to read the settings from any part of backend or frontend

$mvSetupSettings = array(

//Set 'production' - log all errors into /log/ folder, 
//'development' - display all possible errors on the screen
'Mode' => 'development',

//Database parameters
'DbEngine' => 'mysql', // mysql / sqlite
'DbMode' => 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION', //SQL mode for MySQL engine
'DbFile' => 'database.sqlite', //File of sqlite database if engine is 'sqlite' location 'userfiles/database/sqlite/'
'DbHost' => 'localhost', 
'DbUser' => 'root',
'DbPassword' => '',
'DbName' => 'mysite',

 //Project server time zone in format for php like 'Europe/Moscow'
 //List of timezones http://php.net/manual/en/timezones.php
'TimeZone' => 'GMT',

//Region for localization see folder ~/adminpanel/i18n/
'Region' => 'en',

//Name of domain of the site must begin with 'http://' (and no '/' at the end!)
'DomainName' => 'http://localhost',

//Web site location path from root folder of domain(usually '/' on production server)
'MainPath' => '/mywork/,mysite',

//Name of folder with admin panel from the root of site. No '/' before or after.
'AdminFolder' => 'adminpanel',

//If true will start the session the the frontend when any page runs
'SessionSupport' => false,

//Set HttpOnly mode for cookies
'HttpOnlyCookie' => true,

//Allows cache operations and turns on cache cleaning in models CRUD
'EnableCache' => false,

//File storage path from the root of site (the same one is used by WW editor). No '/' before or after.
'FilesPath' => 'userfiles',

//Special code for md5 url params, make it new when setup the project
'SecretCode' => '',

//Sender email address, set it like 'Name <email@domain.zone>'
'EmailFrom' => '',

//Type of email sending
'EmailMode' => 'mail', // mail / smtp

//SMTP setting for email sender
'SMTPHost' => '',
'SMTPPort' => '',
'SMTPAuth' => true,
'SMTPEncryption' => '',
'SMTPUsername' => '',
'SMTPPassword' => ''
);
?>
Reads: 1466
Answers: 1
Admin
09/11/2020 13:58

You need to switch on short tags for PHP
In php.ini file set option short_open_tag=On
or in .htaccess file write php_value short_open_tag 1

And also in your config/setup.php file set
'MainPath' => '/mywork/mysite/'

and in .htaccess file set RewriteBase /mywork/mysite/

Answer the question
Submit answer
MV tracker

© 2014-2025, MV framework team

MV tracker project Github