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: 1150
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