Welcome Guest, Not a member yet? Register   Sign In
Getting data from view file itself
#1

[eluser]mattalexx[/eluser]
I need some MVC advice: I have a model called Text_Image_model that deals with overlaying text on an image using ImageMagick, caching an image files then delivering the cache information.

I have a view file called header.php that needs to access this data every time it loads. The data that this view needs isn't specific to any controller. Would it be "MVC complaint" to stick a model call in my view (It seems like this logic is layout-specific anyway and wouldn't exactly be out of place, but I also know that I should keep my views relatively stupid)? If not, what would be the best way to accomplish this?


Messages In This Thread
Getting data from view file itself - by El Forum - 06-22-2008, 08:46 PM
Getting data from view file itself - by El Forum - 06-22-2008, 09:38 PM
Getting data from view file itself - by El Forum - 06-29-2008, 11:25 AM
Getting data from view file itself - by El Forum - 06-29-2008, 12:10 PM
Getting data from view file itself - by El Forum - 06-29-2008, 12:24 PM
Getting data from view file itself - by El Forum - 06-29-2008, 03:28 PM
Getting data from view file itself - by El Forum - 06-29-2008, 05:01 PM
Getting data from view file itself - by El Forum - 06-30-2008, 02:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB