Quantcast

How to call others modules outside current?...

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

How to call others modules outside current?...

ginnk
Hello, I have a question about the general programming in Zend framework..

Its about acces other modules from the current module. One example: I have two modules: articles modules and comments modules. The two modules in diferent paths so differents url to acces.Then, I acces to module article and I wana get the comments, so I need to acces comments module from the article one.

Seems like gurus in Zend say that the estrategy to acces other modules outside the current is not a good practise, but I think is really needed, otherwise the modularity will not be succesful.

What do u think about it? Its a good practise or not to acces other modules, if not, could u explain a way to do the example?

I hope to be clear on my question.. Thanks to everybody
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to call others modules outside current?...

scss
Hello,
You can create models and then get the data you need via those models.


On Sat, Oct 16, 2010 at 8:50 PM, ginnk <[hidden email]> wrote:

>
> Hello, I have a question about the general programming in Zend framework..
>
> Its about acces other modules from the current module. One example: I have
> two modules: articles modules and comments modules. The two modules in
> diferent paths so differents url to acces.Then, I acces to module article
> and I wana get the comments, so I need to acces comments module from the
> article one.
>
> Seems like gurus in Zend say that the estrategy to acces other modules
> outside the current is not a good practise, but I think is really needed,
> otherwise the modularity will not be succesful.
>
> What do u think about it? Its a good practise or not to acces other modules,
> if not, could u explain a way to do the example?
>
> I hope to be clear on my question.. Thanks to everybody
> --
> View this message in context: http://zend-framework-community.634137.n4.nabble.com/How-to-call-others-modules-outside-current-tp2998455p2998455.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to call others modules outside current?...

weierophinney
Administrator
In reply to this post by ginnk
-- ginnk <[hidden email]> wrote
(on Saturday, 16 October 2010, 10:50 AM -0700):

> Its about acces other modules from the current module. One example: I have
> two modules: articles modules and comments modules. The two modules in
> diferent paths so differents url to acces.Then, I acces to module article
> and I wana get the comments, so I need to acces comments module from the
> article one.
>
> Seems like gurus in Zend say that the estrategy to acces other modules
> outside the current is not a good practise, but I think is really needed,
> otherwise the modularity will not be succesful.
>
> What do u think about it? Its a good practise or not to acces other modules,
> if not, could u explain a way to do the example?

You may be interested in a blog post I did recently:

    http://weierophinney.net/matthew/archives/246-Using-Action-Helpers-To-Implement-Re-Usable-Widgets.html

--
Matthew Weier O'Phinney
Project Lead            | [hidden email]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to call others modules outside current?...

ginnk
In reply to this post by ginnk
Thanks!

Nice answers to some basics ideas. Still lot to learn :)

Regards
Loading...