Hi,
my helper actually uses HtmlHelper methods to add scripts passed from a
component.
What I can't understand is why $scripts_for_layout is always empty
either if I use both Htmlhelper and manually set the variable.
It seems empty-ed somewhere...
Il 05/01/2012 10:39, Tilen Majerle ha scritto:
$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] <mailto:[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
[email protected]
<mailto:cake-php%[email protected]> For more options,
visit this group at 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
--
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