How to set the content of the $script_for_layout in cakephp?

Posted by sipiatti on Stack Overflow See other posts from Stack Overflow or by sipiatti
Published on 2010-04-25T17:58:03Z Indexed on 2010/04/25 18:03 UTC
Read the original article Hit count: 282

Filed under:
|

Hi,

I am learning cakephp in an autodidact manner and I am a complete newbie :) I am creating a simple application. Some logic work so now I going to dive into designing views and layouts. I read the docs and the tutorial but I could not find where to set the content of $script_for_layout. Especially I want to set a $html->css to create link in pages to the stylesheet. I found out that I could do it in directly in the layout template but I would like to create the same link in all pages/views/layouts to the stylesheet so I hope there is a simple way, and avoid to do this in all layouts and/or controllers

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about php