[Solar-talk] help with apps

Paul M Jones pmjones at solarphp.com
Mon Oct 16 06:50:05 PDT 2006


Hi Jeff,

Again, sorry for my very late replies here.

> Basicly I have the following apps
>
> User app: all this does is allow (list/edit/add) of the username/ 
> password
> details used in Solar_Auth
> News app:
> Product app:
>
> I then create a site app which sets up the solar.config.php and a  
> index.php
> file that sorts out include paths etc and starts solar sets up  
> mysql db. The
> site app has any static help/terms/contact forms pages etc.
>
> I then using action links to include if needed a news, user, and  
> product app.
>
> Each app when called sets up and defines its own $_layout  
> $layout_style etc
> and I am able to overide the default style and layout of each app with
> whatever the site app layout and style is automaticaly.
>
> I just thought now in hind site that having each app as a  
> standalone is not
> nessasary as they are unlikely to be used on there own and realy  
> only work as
> part of a web site.

Believe it or not, what you describe above (multiple "standalone"  
apps as part of the same website) is exactly what I'm doing with  
Solar at my day-job.  We have one "base" app class that the other  
apps extend.  Common actions, settings, and pre-/post- run/action  
methods are in the base, and the individual "real" apps override  
these as necessary.  There's no "module" structure at all, just the  
individual apps.

Does that help at all?


--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list