[Solar-talk] help with apps
Antti Holvikari
anttih at gmail.com
Thu Aug 10 07:17:50 PDT 2006
On 8/10/06, Rodrigo Moraes <rodrigo.moraes at gmail.com> wrote:
> On 8/10/06, Jeff Surgeson wrote:
> > Hi Rodrigo, thanks for that however accessing the protected methods is not
> > realy the issue, what I am battleing to get my head around is creating
> > mutiple apps (user, news, product etc etc) and then "glueing" them together.
>
> I'm also interested to hear other people's approaches on this subject,
> and I think this is a common dilemma after you have some apps. For
> example, you have a controller to deal with products (fetch data,
> build views), and then another one to build a store? It seems better
> than put everything in one place and you can make the same store to
> deal with different kinds of products without bloating it.
>
> The solution to tie them is something we have to think about: the
> separated controllers need to "talk" to the main controller using a
> public interface, and better after some tries is to find common names
> for the API so all controllers use the same convention. The view
> object must be the same for all controllers however, and this is the
> part that most confuses me.
I'm not sure what you're after. I think a gave an example of something
like this for Jeff a while ago
(http://lists.solarphp.com/pipermail/solar-talk/2006-July/000982.html).
If things start to get messy I think you should just extend some base
app and instantiate your models there and use them in every app.
Could you give a better or a more precise example of your "problem" :-).
--
Antti Holvikari <http://phphalo.com>
More information about the solar-talk
mailing list