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
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
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
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
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
Just to clarify this is what Ia trying to do:
In the view I have
var completedText = '= $this->element('DoneShare/completed',
array('completed_time' => $completed_time)) ?>';
This work well when the DebugKit is not active producing this output:
var completedText =
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