well I really thought I was clear but seems not

a real example is a cms for art galleries

all the galleries need the same basic functionalities but some of them
might need specific functionalities

all the apps are hosted on the same server and the main (parent) app
also, basic functionalities are taken care of by the Models/
Controllers/Views from the main app, specific ones by the Models/
Controllers/Views of the child app (whether they are new
functionalities or existing one (in the main app) but overridden by
the child app).

What I want to do is not to have to duplicate the code in each app
folder so for the functionalities that are common to all the apps I
want one and only main parent app dir.

I can do it so far (see previous posts), the only things missing are :

- common js/css/img folder (coming in 1.2)
- sharing plugins (how do I access a plugin in another app)
- having the child app app_controller inherit from the parent app (so
that I don't have to duplicate the app_controller code in each
app_controller)

hope it is clearer but maybe the logic of it (loading the main app
files in bootstrap) is not the right one...

thanks

thomas



On Apr 12, 12:55 pm, "AD7six" <[EMAIL PROTECTED]> wrote:
> On 12 abr, 12:38, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > hi there
>
> > and thnks for the reply
>
> > well what I want to achieve is what I wrote earlier :
>
> Hint: If someone asks a question which you think you already answered
> - reconsider ;).
>
> > core functionnalities (models controllers views components helpers
> > (possibly plugins)) contained in a Parent App
>
> > Many Child Apps inheriting from their parent (I can achieve this with
> > loading the files from this parent in the child bootstrap.php file),
> > and optionnaly adding their own functionnalities which can either be
> > specific or just override the main ones.
>
> > example :
>
> > I have a user management system in my main app (authentication and
> > permissions), my child app inherits from this (calling users/login
> > calls it from the main app), if I want a specific user controller I
> > set it up in my child app and it is the one used by this app (or a
> > specific login.thtml or User Model)
>
> Why would you want to do that.
>
> > at the moment I can do just this with the bootstrap method but I can't
> > seem to be able to inherit functionnalities from a 'main'
> > AppController and also I don't know how to inherit from plugins that
> > are in my mainApp/plugins folder
>
> A real example of what you want to *achieve* would help others (me)
> know what you really mean.
>
> > as I said I tried it the other way around (having the child app
> > actually be the main app)  but then I didn't know how to override
> > functionnalities.
>
> Are you wanting to have a base 'library' app to use as the foundation
> for numerous unrelated project applications? if so making use of
> symlinks might allow you to do what you want. If not: 3rd time
> lucky ;)
>
> Cheers,
>
> AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to