[Solar-talk] find all available apps
Raymond Kolbe
rkolbe at gmail.com
Tue Apr 15 16:29:53 CDT 2008
Does this have to be dynamic? If not, then you could keep the app names in
an array in the config file (as Paul mentioned). Hell, you could even read
the Solar_Controller array if you define all routes to your apps - a
win-win.
On Tue, Apr 15, 2008 at 11:10 AM, Paul M Jones <pmjones at paul-m-jones.com>
wrote:
>
> On Apr 15, 2008, at 10:00 , Jeff Surgeson wrote:
>
> > What is the easiest way to get a list of available vendor apps?
> > > >
> > > > Solar::parent()?
> > > >
> > >
> > > There is no way for Solar to know all the apps it can run. The only
> > > thing Solar knows is that it needs to look for page controllers where
> > > you've told it to.
> > >
> > > That said, I've implemented something very close to what you want with
> > > Abovo. When you access a URL it stores that app name in the db and
> > > scans that app for info with reflection (available actions, action
> > > names, app name and description). It then stores this info in the
> > > cache for later use.
> > >
> > > The code doesn't work with vanilla Solar :-(
> > >
> > > http://code.google.com/p/abovo/source/browse/trunk/Abovo/Menu.php
> > >
> >
> > Thanks Antti, was looking at your menu app and I think I will have to go
> > that
> > way, was just hoping for something a little less complex and without the
> > need
> > for db access.
> >
>
> If you wanted to, you could glob() the Vendor/App directory for *.php
> files, and keep that list. Could even do it in Solar.config.php if you
> needed to. Would that help?
>
>
> -- pmj
>
> _______________________________________________
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-mail3.webfaction.com/pipermail/solar-talk/attachments/20080415/0e3955ff/attachment.html
More information about the Solar-talk
mailing list