- separation of layout and code through twig-templates;
- similarity of MVC structure;
- .ENV via dotenv;
- meta tags for previews in social networks;
- something else;
- PHP 7.1;
- Apache 2.6;
- Libraries are connected through composer;
- an instance of Handler is created;
- Handler creates instances of Environment, Logic and User;
- Environment loads data from .env;
- Handler renders the page through Render;
- Render processes the requested template and displays the page through Twig.
An example for a project called project:
run
sh install.sh
or manual:
mkdir view/cache
chmod 777 view/cache
cp example.env .env
composer update
cd public_html
cp example.htaccess .htaccess
Next, make changes to .env
Apache public_html directory: controller\public_html
.
You can find an example of apache virtual host in the file apache.conf
it must be placed along the path:
- RH-based systems:
/etc/httpd/conf.d/
- Debian based:
/etc/apache2/sites-enabled/
- Complete the installation script, make automatic configuration of the apache virtual host;
- make docker;
- remove github-btn;
- rebuild the interface;
- add more showreel-gizmos;
- add asynchrony;
- turn the project into a composer package.
Copyright (c) 2021 Sagleft.