hi there

and thnks for the reply

well what I want to achieve is what I wrote earlier :

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)

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

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.

as for themes I really don't know how they work in cake

thomas

On Apr 12, 11:13 am, "AD7six" <[EMAIL PROTECTED]> wrote:
> On 12 abr, 10:25, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > hello group
>
> > I am in a situation where I am setting up a main app that is to be
> > used as a core app for other apps.
>
> > I am using cake 1.1.x.x.
>
> > I am also using the bootstrap.php file in my children apps to load
> > models, controllers, views, components, helpers and behavio(u;)rs,
> > from this parent app.
>
> > But what I want to achieve is to use my main app AppController class
> > to act as the AppController class for all my children apps.
>
> > how would u go about this ?
>
> > I tried to go the other way i.e. to change the APP constant to point
> > to my main app and then have my main app bootstrap load my child app
> > classes but in this scenario the main app files have precedence over
> > my child app ones whicj is not what I want (i.e. if I want to have a
> > main items_controller for all my apps but want to override it in a
> > specific app).
>
> > Also I did not figure out a way to use plugins from another app
>
> > I know things will get easier in 1.2 (I guess) but I really need to
> > qstick to 1.1 for now.
>
> > any insight appreciated
>
> > thomas
>
> Could you give a (real) example of what you want to achieve? Start
> with the most generic description (i.e. not "I want to change the var
> $x") as there may be a different, and much easier approach.
>
> Probably with either routes (to dynamically define variables which
> your app can pick up), plugins (to override functionality) or themes
> (to change the way things look) you can get what you want; although
> probably not in exactly the way you are currently thinking.
>
> hth,
>
> 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