[Solar-talk] Newbie question about Solar directory structure
(long)
Raymond Kolbe
rkolbe at gmail.com
Mon Nov 19 21:47:56 CST 2007
Im not exactly sure what your real needs are but I would probably do
something like:
Vendor
--App
---Fin.php (controller for FIN)
---VOffice (controller for VOffice)
--Model
---Fin
---VOffice
Of course your models will be more complex and integrated with each other
but these two things (fin and voffice) sound like they fall under the same
umbrella and are related enough to be in the same domain.
--Raymond K.
On Nov 19, 2007 4:13 PM, Giuliani Deon Sanches <giulianisanches at gmail.com>
wrote:
> Today, i was reading the Solar manual and get in trouble. Rodrigo was
> trying to make me understand but ... well.. sry...
>
> Example:
>
> I need to develop 3 web sites: Client1, Client2 and Client3.
>
> My dev directory is: $DEV = $HOME/dev/php/projects
> Following the manual instructions i will create:
> $DEV/
> -----Client1/
> ----------App/
> ----------Models/
> -----Client2/
> ----------App/
> ----------Models/
> -----Client3/
> ----------App/
> ----------Models/
>
> I will create a Solar.confi.php inside $DEV with the basic configuration:
> <?php
> $config = array();
>
> // ...
>
> $config['Solar_Controller_Front']['classes'] = array(
> 'Solar_App',
> 'Client1_App',
> 'Client2_App',
> 'Client3_App',
> );
>
> // ...
>
> return $config;
> ?>
>
> Now, Client1 need to rewrite and integrate a virtual office (VOffice)
> application and a financial application (Fin) with the website. The
> best way to do this is:
>
> $DEV/
> -----Client1/
> ----------App/
> ----------Models/
> -----VOffice/
> ----------App/
> ----------Models/
> -----Fin/
> ----------App/
> ----------Models/
>
> or
>
> $DEV/
> -----Client1/
> ----------App/
> ----------Models/
> ----------VOffice/
> ---------------App/
> ---------------Models/
> ----------Fin/
> ---------------App/
> ---------------Models/
>
> or
>
> $DEV/
> -----Client1/
> ----------App/
> ---------------VOffice/
> ---------------Fin/
> ----------Models/
> ---------------VOffice/
> ---------------Fin/
>
> Ty! :)
> _______________________________________________
> 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/20071119/77653120/attachment.html
More information about the Solar-talk
mailing list