-- Jakub Podhorský <[EMAIL PROTECTED]> wrote
(on Tuesday, 12 June 2007, 07:11 PM +0200):
> What about to start output buffering in preDispatch method and in postDispatch
> method clear this output and if there is any output in postDispatch you can 
> log
> it with controller and action name

Ouput buffering is already used in the dispatcher to capture content
echo'd by the action and its constituents, so the only way to enforce
this would be to turn off output buffering
($front->setParam('disableOutputBuffer')), and then write your own
plugins.


> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> 
> From: depace [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 12, 2007 6:22 PM
> To: fw-general@lists.zend.com
> Subject: [fw-general] Is there a way to disable "echo", "print" inside a 
> method
> 
>  
> 
> This sounds little stupid but if it is possible then it will save my ass being
> skinned..
> 
> the problem is while working in a team... the programmers instead of 
> displaying
> the data through template they have a habit of echoing from the method
> itself...
> have to trace where are all those crazy echosss .....
> so it has been a lil pain in ass ...
> 
> it really is a pain to make people work in MVC .. dunno why is it so hard for
> people to understand it..
> 
> 

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to