Re: Using Non-Inline Css in Element

2010-04-24 Thread cricket
On Apr 23, 8:09 pm, Ch3ck3r ad...@ch3ck3r.org wrote: Hi folks, I am new to cakePHP and after two days reading I got quite far with my current application. Nevertheless I am stuck now. I created an Element called 'viewer.ctp' in the elements directory. This Element is used by my layout

Re: Using Non-Inline Css in Element

2010-04-24 Thread Jon Bennett
But, regardless how hard I try, the css link [..] gets printed at its own location instead of at $scripts_for_layout which remains empty. Of course. It's because you call the element in the layout. By the time the PHP interpreter arrives at that line, it's already passed the line, up above,

Re: Using Non-Inline Css in Element

2010-04-24 Thread cricket
On Apr 24, 3:02 pm, Jon Bennett jmbenn...@gmail.com wrote: But, regardless how hard I try, the css link [..] gets printed at its own location instead of at $scripts_for_layout which remains empty. Of course. It's because you call the element in the layout. By the time the PHP

Re: Using Non-Inline Css in Element

2010-04-24 Thread Jon Bennett
Think about it some more. The layout contains a line to echo $scripts_for_layout, which includes any CSS added in a view/element. So, the PHP engine gets to that line and Cake spits out whatever non- inline JS and CSS was added. A few lines later, the element is encountered. How do you

Using Non-Inline Css in Element

2010-04-23 Thread Ch3ck3r
Hi folks, I am new to cakePHP and after two days reading I got quite far with my current application. Nevertheless I am stuck now. I created an Element called 'viewer.ctp' in the elements directory. This Element is used by my layout 'page.ctp' by using this command: ?php echo