[Solar-talk] find all available apps
Paul M Jones
pmjones at paul-m-jones.com
Tue Apr 15 10:10:22 CDT 2008
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
More information about the Solar-talk
mailing list