Jump to content

Global class as model injected into views via presenters...


Hall of Famer

Recommended Posts

Well I read this thread on adobe about global variables in class methods, and someone said this:

 

I dont use glabal vars anymore, more like a global class in the form of a Model that I inject into views (via presenters) using Swiz

 

Thread: http://forums.adobe.com/message/4379224

 

I was wondering how this is possible, it seems that the user has a MVC framework. I've heard of models, views, controllers and how they interact, but the concepts are still confusing to me. Can anyone of you show me an example of how a global class in the form of model can be injected into views? This can help me understand it better, and Id appreciate it very much.

 

 

Link to comment
Share on other sites

I don't think it would be considered a model. I believe what you're looking for is a registry. Zend Framework uses it, I believe the Symphony framework also uses it too but I'm not sure.

Google search 'registry class php' and you'll get the answers you're looking for, I'm sure.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.