[Solar-talk] help with new dir structure
Jeff Surgeson
solar at 3hex.com
Mon Mar 10 08:57:21 CDT 2008
On Monday 10 March 2008 15:31:51 Jeff Surgeson wrote:
> On Monday 10 March 2008 14:29:22 Rodrigo Moraes wrote:
> > On Mon, Mar 10, 2008 at 9:08 AM, Jeff Surgeson wrote:
> > > My problem is this:
> > > If I try and use the Vendor_App_News application class in Site1, as it
> > > is extended from Vendor_App_Base and not Site1_App_Base it loads the
> > > Vendor_App_Base_Layout templates and not Site1_App_Base_Layout
> > > templates.
> >
> > Hi Jeff,
> > Try something like this. In Vendor_App_Base, add a config key
> > 'template_path', and then add that path in _setLayoutTemplate():
> >
> > I'm not sure this exactly will work or if it is the simplest way, but
> > it can give you a clue on how to get the flexibility you want. :)
>
> Hi Rodrigo, yes it does solve most of the problem at least it now loads
> from the Site1_App_Base_Layout as well, thanks.
>
> I just need to find a way to get it to inherit the site specific stuff from
> Site1_App_Base.
OK, to get it to work I did this:
1. Add template path as you suggest
2. Duplicate the Site1_App_Base config & setup in a Site1_App_NewsSite class
which extends Vendor_App_News.
It then works but then site specific setup & config which should be done in
Site1_App_Base has to be duplicated, not good, must be another way. :-(
--
...........::::::...........
Jeff Surgeson / South Africa
More information about the Solar-talk
mailing list