Imagine a component that has a model with several methods - getItem,
getItemByName, getItemExpiration, getItemShoeSize, getPizzaRecipe and
whatnot...
I want the view to return JSON strings for each, and using $task to
determine which to execute. So far, so good.
However I find myself using one view, and in the view class grabbing
the task and executing the task in the model call. Something about
this just doesn't seem right, as the V shouldn't be calling variable
methods, right?
On the flipside, I'm not really interested in creating separate views
for every task either.
Is there a better approach?
-- Mitch