cakephp - How to process and change output before it is sent back to the browser? -
i want implement mechanism in cakephp shortcodes in wordpress. want save pages (in db) tokens, e.g.
[form id=12]
and then, after view got rendered , before sent browser, want search rendered view these tokens, , replace them else.
i assume i'll have use beforefilter
, afterfilter
or beforerender
, can't find documentation (including in cakephp's own documentation!) how these overriden functions can used change output.
can help?
Comments
Post a Comment