Got it working, but it leaves a little to be desired:

Objective:
   Filter the output after all rendering has happened.

Initial thoughts:
   First thought:
Look at views/filters/ .. hmm, focused on Input Filtering, not Output filtering...
      -- Output filtering is a very handy thing for some views.
   Second choice:
Look into Helpers .. hmm, not really in the rendering chain, part of the rendering process.
   Third choice:
      Plugin .. gack.  Ok, it does work.  But, I'm now faced with:

   IndexController {
      function init() { create and initialize the plugin }
   }

Why is it in the init() step (it'll probably move to the postDispatch() step) it's because it's a per-view dependant behavior. I can either create the filter in the main dispatch and then disable, or enable on a case by case basis...

Final thought:
* Could it be possible to have a mechansim that is based on the Zend_Filter system that can do output filtering of data. Is it already in plans?

--koblas

Reply via email to