dan.latter wrote:
> 
> Couldn't you just render the same .phtml file each time using render()  
> method? And maybe have a little logic  in this file also.
> 

This is exactly what I would like to do - have a little logic in it (same
for all json).
I don't know where I should place this render() so that it would be context
specific.
There is a prefix thing for context, but as far as I can see you can not
specify a static path, it will always be relative to the controller script.

I am new to Zend Framework, but I think the problem with disabling the views
for Json is that in that case I think I would need to make the controller
Json specific eg. echo $griddata instead of view->griddata=$griddata. In
which case there is little point in using context.
Maybe there is a way to do this by disabling the view and still keep the
controller generic, but I don't know how to do that.

-- 
View this message in context: 
http://www.nabble.com/generic-view-for-Json-contextSwitch-tp20631627p20635121.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to