Yeap, it looks very ugly to dispatch another Front Controller, I'll try your suggestion to web-service layer to handle communication between the apps.
Thanks for your help,
Remy
On Sat, Apr 18, 2009 at 1:43 AM, keith Pope <mute.pop3@googlemail.com> wrote:
2009/4/17 Remy Damour <remy.damour@gmail.com>:
> Thx for your help.You may want to read this:
>
> To be honest I don't really understand what you mean when writing "use the
> Model from the other application".
>
> I'm just in the case where I have two completely independent apps, both
> based on Zend Framework and both expecting the other NOT to be based on ZF
> (=> I cannot rewrite nested app as a module of the calling app).
>
> Problem is that when one app calls the other, well, nested app is served
> with an alredy preconfigured Front controller instead of a brand new one,
> but still cannot clear this front controller calling
> Zend_Controller_Front::resetInstance() because once nested app call is over,
> calling app will continue its process.
>
> If I missed something on using Models, please let me know.
http://www.survivethedeepend.com/zendframeworkbook/en/1.0/the.model
With Fat Models you should be able to simply use them within another
app, if you have a lot of business logic in your controllers you wont
be able to do this.
The only other way I can think of is to use a web service to wrap the
second apps functionality. Again though this is hard if you have logic
in your controllers.
I would say trying to dispatch another Front Controller is a bad
solution, it will create horrible overheads even if it is possible to
get it working.
--
>
> Regards, Remy
>
> On Fri, Apr 17, 2009 at 11:44 PM, keith Pope <mute.pop3@googlemail.com>
> wrote:
>>
>> Would you not just use the Model from the other application?
>>
>> 2009/4/17 Remy Damour <remy.damour@gmail.com>:
>> > Hi,
>> >
>> > I hope it's the correct mailing list for my question.
>> >
>> > Is there a clean way to nest Zend Framework calls?
>> >
>> > Let's say I have a modular application (calling 3rd party plugins and so
>> > on): app1.
>> > This app is based on Zend Framework. A 3rd party plugin is also based on
>> > Zend Framework.
>> >
>> > Problem is that since Zend_Controller_Front & Zend_Registry are
>> > singletons,
>> > then 3rd party plugin call fails.
>> >
>> > => is there any way to call nested (and not chained) & independent
>> > Zend-Framework based applications?
>> >
>> > Regards,
>> > Remy
>> >
>>
>>
>>
>> --
>> ----------------------------------------------------------------------
>> [MuTe]
>> ----------------------------------------------------------------------
>
>
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------
没有评论:
发表评论