Add support to front controller to home made MVC or framework (type laravel...) - #162
Open
NemStudio18 wants to merge 62 commits into
Open
Add support to front controller to home made MVC or framework (type laravel...)#162NemStudio18 wants to merge 62 commits into
NemStudio18 wants to merge 62 commits into
Conversation
3 tasks
Member
|
!testme (je n’utilise pas cette app, je lance juste les tests pour vérifier que ça fonctionne comme prévu) |
Contributor
Author
|
Ok merci 👍 |
- Add missing `php_root` and `YNH_PHP_ROOT` variable definitions in install, upgrade, and config scripts - Ensure proper PHP root path handling according to install_mode (standard/www vs public) - Fix installation error where `__PHP_ROOT__` replacement failed due to undefined variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
Solution
PR Status
constat que les routes demandées sont bien respéctées la construction des dossiers dans /www est bien celle attendue.
Impossible de tester moi même la multitude de framework existant , mes test vont se dérouler avec pour "mvc homemade" le cms 299ko (déjà natif a yunoh mais je le connais et sais comment il doit fonctionner), il y aura surement des corrections a faire sur les config nginx de base au fil de l'eau.
de l'aide pour les tests est donc la bienvenue ^^'
en résumé:
Vue d'ensemble des Changements
Résumé des modifications apportées au projet My Webapp pour implémenter le support multi-modes.
1. Templates Nginx
conf/nginx-front-controller.conf(Mode Front Controller)root __INSTALL_DIR__/www/$uri /index.php$is_args$argsconf/nginx-framework.conf(Mode Framework)alias __INSTALL_DIR__/www/public/$uri $uri/ __PATH__/index.php?$argsconf/nginx.conf(Mode Statique - Défaut)alias __INSTALL_DIR__/www/$uri $uri/ __PATH__/index.php?$args =4042. Manifest et Configuration
manifest.toml[install.mode]["static", "front-controller", "framework"]"static"config_panel.toml[main.application_mode]3. Fichiers Sources
sources/www/index.php(Mode Front Controller)/,/about,/contact,/api/testsources/www/public/index.php(Mode Framework)4. Scripts d'Installation et Configuration
scripts/installscripts/configStructure des Fichiers par Mode
Mode Static (Actuel)
Mode Front Controller
Mode Framework
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)