Re: Turning off Debugkit debug data in a specific instance

2012-11-09 Thread Benjam Welker
Replace the element method in /DebugKit/View/DebugView.php with the following: /** * Element method, adds comment injection to the features View offers. * * @return void */ public function element($name, $data = array(), $options = array()) { $out = ''; $isHtml = (!isset($this->request->param

Re: Turning off Debugkit debug data in a specific instance

2012-02-09 Thread AD7six
On Feb 9, 9:21 am, Chris Cinelli wrote: > The real content is not just a string like "This is my awesome string" but > has a few variables and associated conditions. Same question AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakeP

Re: Turning off Debugkit debug data in a specific instance

2012-02-09 Thread Chris Cinelli
The real content is not just a string like "This is my awesome string" but has a few variables and associated conditions. This is actually a little exception because it is not usually something I assign to a javascript variable. I use elements when the result should be render initially in the view

Re: Turning off Debugkit debug data in a specific instance

2012-02-08 Thread AD7six
On Feb 8, 8:54 pm, Chris Cinelli wrote: > BTW, the a patch is using: preg_replace ('/\s/', > '', $this->element(...)); but it seems a little an overkill > > On Wed, Feb 8, 2012 at 11:44 AM, Chris Cinelli < > > > > > > > > > > chris.cine...@formativelearning.com> wrote: > > Just to clarify this i

Re: Turning off Debugkit debug data in a specific instance

2012-02-08 Thread Chris Cinelli
BTW, the a patch is using: preg_replace ('/\s/', '', $this->element(...)); but it seems a little an overkill On Wed, Feb 8, 2012 at 11:44 AM, Chris Cinelli < chris.cine...@formativelearning.com> wrote: > Just to clarify this is what Ia trying to do: > > In the view I have > > var completedText

Re: Turning off Debugkit debug data in a specific instance

2012-02-08 Thread Chris Cinelli
Just to clarify this is what Ia trying to do: In the view I have var completedText = 'element('DoneShare/completed', array('completed_time' => $completed_time)) ?>'; This work well when the DebugKit is not active producing this output: var completedText =

Turning off Debugkit debug data in a specific instance

2012-02-07 Thread Chris Cinelli
I would like to turn off in a specific instruction $this->element(...) the behavior that the DebugKit has to add prepending line with "" etc. The result of the element rendering goes in a string that should not have those HTML comments. I would like to be able to keep the debug kit on except in tha