Open moufmouf opened 11 years ago
Started improvement. Replaced Ajax validators with interfaces with a single ajax URL in the mouf package. Now, to build a validator, there is no more need to open access to the implementing package.
Here is an idea: put the real front controller in the project itself, in a folder dedicated to be the document root (this is web/
in Symfony, with a single line in it:
<?php
require __DIR__.'/../vendor/mouf/mvc.splash/src/splash.php';
and then, provide a CLI tool creating the initial project skeleton with the .htaccess file with rewrite rules and this front-controller file (alongside anything needed before being able to use the UI).
This line for the front controller is the one I found in the .htaccess file for Packanalyst. It may not be the right one for all use cases in mouf (in particular regarding the access to the Mouf admin UI), but I don't know the framework enough (my only experience is installing Packanalyst locally less than 2 hours ago)
This way, the
When the docroot is not the root of the project (this is a good practice), the vendor/mouf/mouf directory is not reachable via the web.
1- Adapt the doc to explain how to create an alias / virtualhost 2- Adapt the code of every plugin that is using /direct. Replace this call by a class with a proxy.