Don't know if my last post made it but I found a better solution
(since afterRender doesn't exist and I was changing the action
variable):
function render($action = null, $layout = null, $file = null){
if ($this->RequestHandler->ext == 'json') {
return parent::render($action, $layout, '/share/json'); //loads /app/
views/shared/json.ctp
}
return parent::render($action, $layout, $file);
}
--
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=.