[MVC] Полная миграция на MVC архитектуру
- Создано ядро MVC: App, Router, Controller, Model, View, Database - Созданы модели: User, Product, Category, Cart, Order - Созданы контроллеры: Home, Auth, Product, Cart, Order, Page, Admin - Созданы layouts и partials для представлений - Добавлены все views для страниц - Настроена маршрутизация с чистыми URL - Обновлена конфигурация Docker и Apache для mod_rewrite - Добавлена единая точка входа public/index.php
This commit is contained in:
17
docker/apache/entrypoint.sh
Normal file
17
docker/apache/entrypoint.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Включаем mod_rewrite
|
||||
a2enmod rewrite
|
||||
|
||||
# Копируем конфигурацию виртуального хоста
|
||||
cp /etc/apache2/sites-available/vhosts.conf /etc/apache2/sites-enabled/000-default.conf
|
||||
|
||||
# Устанавливаем права
|
||||
chown -R www-data:www-data /var/www/html
|
||||
|
||||
echo "Apache configured successfully"
|
||||
|
||||
# Запускаем Apache в foreground режиме
|
||||
exec apache2-foreground
|
||||
|
||||
25
docker/apache/vhosts.conf
Normal file
25
docker/apache/vhosts.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin admin@aeterna.local
|
||||
DocumentRoot /var/www/html
|
||||
ServerName localhost
|
||||
|
||||
<Directory /var/www/html>
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
# Логирование
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
# Кодировка по умолчанию
|
||||
AddDefaultCharset UTF-8
|
||||
|
||||
# Типы файлов
|
||||
AddType text/css .css
|
||||
AddType text/less .less
|
||||
AddType text/javascript .js
|
||||
AddType image/svg+xml .svg
|
||||
</VirtualHost>
|
||||
|
||||
Reference in New Issue
Block a user