Tuesday, July 5, 2011

Re: including js(and css) file from an element (to $scripts_for_layout )

it works, if you use elements in your view, but if you use element in your layout then won't work, because $scripts_for_layout is set before element in rendered in layout
--
Lep pozdrav, Tilen Majerle



2011/7/5 K3 <kiril.zvezdakoski@gmail.com>
Hi,
how to include js(and css) file from element (to
$scripts_for_layout )?
i tried the usual way i use from a view:
<?php echo $this->Html->css('xxxx',null,array('inline'=>false)); ?>
<?php echo $javascript->link('xxxx.js',false); ?>
but it doesnt work. I wonder why?
Can anyone help me on this issue?

Thanks

--
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 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: