make a composer.json file in root folder of your app
{
"autoload" : {
"psr-4" : {
"app\\": "app"
}
},
"require" : {
"james.rus52/phpfrm": "^1.7",
"phpmailer/phpmailer": "~6.0",
}
}
Install framework
composer install
copy project template from vendor/james.rus52/phpfrm to your root folder
it look like this after that
/
/app
/controllers
/AppController.php
/MainController.php
/models
/AppModel.php
/MainModel.php
/views
/Main
/index.php
/layouts
/default.php
/widgets
/menu
/Menu.php
/layout_app.php
/public
/index.php
/.htaccess
/js
/css
/img
/plugins
/tmp
/cache
/logs
/.htaccess
/vendor
/james.rus52/phpfrm
/composer.json
Change your website layout in /views/layouts/default.php Make additional pages like index.php
- Make a controller in /app/controllers extedded of AppController class
- Make a model in /app/models extedded of AppModel class
- Make a view in /app/views/
You can manage routes and settings at /config folder