$scripts_for_layout is reserved for scripts that you apply with
HtmlHelper::script or HtmlHelper::css and in options array you pass
"inline" => false
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2012/1/5 luca capra <[email protected]>

> Hi all,
> on cakephp 2(.0.1) I would set $scripts_for_layout in view from a custom
> helper, my code is like
>
> public function  beforeRender($viewFile) {
>  $this->_View->set('scripts_**for_layout', $this->output);
> }
>
> this is explained on the book 2.0 migration (book.cakephp.org/2.0/en/**
> appendices/2-0-migration-**guide.html#callback-**positioning-changes<http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html#callback-positioning-changes>)
> but is not working (scripts_for_layout is always empty).
> I'm missing something?
>
> Thank you,
> Luca
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org Check out the new CakePHP Questions site
> http://ask.cakephp.org and help others with their CakePHP related
> questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@**googlegroups.com<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/**group/cake-php<http://groups.google.com/group/cake-php>
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to