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.

 

 

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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.