[Solar-talk] Toward a Standard Project Structure
Ian Szewczyk
roamzero at gmail.com
Fri Feb 29 13:26:04 CST 2008
The problem with symlinks is not everyone has shell access to his or
her hosting. Meaning either copying files to the htdocs directory or
setting up an install script to do the symlink through PHP,
potentially complicating things, given that some people even have
troubles using FTP. Also God forbid it be on a Windows box.
Anyway, I do like the idea of setting it up the way Paul suggested,
for now I've had a site directory under my vendor directory
where the site classes extend from the front controller, and inside
that a subdirectory for each site that's appended to the front of the
include path when the front controller runs (which also loads a
per-site config file afterwards to start Solar). Although this adds
flexibility in my case, it's not a perfect solution because it adds to
the include path and Solar has a habit of doing a lot of file scanning
with its file and class stacks.
Hopefully Paul will bundle some sort of installation utility into
Solar that will let you setup config files and symlinks with minimal
effort for your apps ;)
On Fri, Feb 29, 2008 at 12:45 PM, Antti Holvikari <anttih at gmail.com> wrote:
> On Fri, Feb 29, 2008 at 6:58 PM, Kilbride, James P.
>
> <James.Kilbride at gd-ais.com> wrote:
> > Do we really want to put the application source(Vendor/App/Whatever) in
> > the actual web doc root? I personally think it's a really good idea to
> > keep that out of the web doc root and in the source directory and then
> > setting up different index.php files in the doc root for each one that
> > calls a different solar.config.php file in the config directory.. unless
> > I'm missing something here.
>
> Notice how docroot only has symlinks to all the "Public" directories.
> This way only the styles, images and scripts are available via HTTP.
>
>
> --
> Antti Holvikari <http://anttih.com>
> _______________________________________________
>
>
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>
--
IAN SZEWCZYK
roamzero at gmail.com
More information about the Solar-talk
mailing list