Aha, I see. And *should* I be able to add style tags to my page like
that (see my previous response to your penultimate message)?
Toby
On May 10, 9:29 pm, brian bally.z...@gmail.com wrote:
This is how the style (and script) tags are added to your layout. I
think Ketan didn't realise that
It appears that there's no built-in way to do that. So, i guess you'll
need to create a helper of your own for it.
On Mon, May 11, 2009 at 3:19 AM, toby1kenobi toby.math...@gmail.com wrote:
Aha, I see. And *should* I be able to add style tags to my page like
that (see my previous response to
Ah ok, cheers for all the help!
Toby
brian wrote:
It appears that there's no built-in way to do that. So, i guess you'll
need to create a helper of your own for it.
On Mon, May 11, 2009 at 3:19 AM, toby1kenobi toby.math...@gmail.com wrote:
Aha, I see. And *should* I be able to add style
I actually have that already - care to elaborate on why you mentioned
it though?
Thanks,
Toby
On May 9, 5:26 am, Ketan Shah ketan.s...@gmail.com wrote:
add this ?php echo $scripts_for_layout ;? in your head tag of the
layout file.
-Ketan.www.propertyjungle.inwww.innovatechnologies.in
On
It's slightly odd eh?
Coincidentally, I've just run int0:
...So it's not as strange as, say, the
$inline param for the css() method. Now *that* makes no sense.
What is going on there?! According to the docs it seems like I should
be able to create a link tag in the head of my document by
This is how the style (and script) tags are added to your layout. I
think Ketan didn't realise that your problem is that you're trying to
add a style *block* to your page.
On Sun, May 10, 2009 at 3:26 PM, toby1kenobi toby.math...@gmail.com wrote:
I actually have that already - care to
Ah - in the context I was trying to use it (an element, which I would
have thought would effectively be the same as a view?) it doesn't seem
to work?
On May 7, 1:26 pm, majna majna...@gmail.com wrote:
it is.http://api.cakephp.org/search/addScript
On May 7, 2:00 pm, toby1kenobi
Sorry, yes it has the inline argument in its definition, but I
couldn't see how to get it to actually render the style tags
themselves (only the content that would go between them) - am I
missing something?
Cheers,
Toby
On May 7, 4:27 pm, brian bally.z...@gmail.com wrote:
/**
* Builds CSS
On Fri, May 8, 2009 at 4:41 AM, toby1kenobi toby.math...@gmail.com wrote:
Sorry, yes it has the inline argument in its definition, but I
couldn't see how to get it to actually render the style tags
themselves (only the content that would go between them) - am I
missing something?
Maybe we
Ah, no it doesn't - it does seem strange.
On May 8, 2:29 pm, brian bally.z...@gmail.com wrote:
On Fri, May 8, 2009 at 4:41 AM, toby1kenobi toby.math...@gmail.com wrote:
Sorry, yes it has the inline argument in its definition, but I
couldn't see how to get it to actually render the style
On Fri, May 8, 2009 at 11:56 AM, toby1kenobi toby.math...@gmail.com wrote:
Ah, no it doesn't - it does seem strange.
Good gravy! It doesn't. It just returns the data as CSS rules.
I was about to say that this seems absolutely useless, except to waste
the PHP parser's time, but then realised
add this ?php echo $scripts_for_layout ;? in your head tag of the
layout file.
-Ketan.
www.propertyjungle.in
www.innovatechnologies.in
On May 8, 8:56 pm, toby1kenobi toby.math...@gmail.com wrote:
Ah, no it doesn't - it does seem strange.
On May 8, 2:29 pm, brian bally.z...@gmail.com wrote:
Hi there,
As mentioned, the styles are dynamically generated, I can't use a
static file (is that what you mean?). $html- 'seems' to only render
style information inline - I could use this, but the code is executing
in the context of an element that isn't in the document's head, it's
in the
?php
$style = 'style type=text/css media=screen
#navigation-holder a#logo span {
background:transparent url(../img/logo.jpg)
no-repeat left
top;
}
/style ';
$this-addScript('test', $style);
?
On May 7,
That (addScript) doesn't appear to be a cake method?
On May 7, 11:15 am, majna majna...@gmail.com wrote:
?php
$style = 'style type=text/css media=screen
#navigation-holder a#logo span {
background:transparent url(../img/logo.jpg)
it is.
http://api.cakephp.org/search/addScript
On May 7, 2:00 pm, toby1kenobi toby.math...@gmail.com wrote:
That (addScript) doesn't appear to be a cake method?
On May 7, 11:15 am, majna majna...@gmail.com wrote:
?php
$style = 'style type=text/css media=screen
/**
* Builds CSS style data from an array of CSS properties
*
* @param array $data Style data array
* @param boolean $inline Whether or not the style block should be
displayed inline
* @return string CSS styling data
*/
function style($data, $inline = true) {
On Thu, May 7, 2009 at 3:33
Hi everyone,
I'd like to add some dynamically generated CSS to my document head
from within an element, is that possible? Ideally I'd like to insert
something like:
style type=text/css media=screen
#navigation-holder a#logo span {
background:transparent url(../img/logo.jpg) no-repeat left
Why not just put that in your regular stylesheet? If you're trying to
override an existing style, you can use a class.
Anyway, have a look at the $html-style() method:
http://api.cakephp.org/class/html-helper#method-HtmlHelperstyle
Also, your path can be absolute - url(/img/logo.jpg)
On Wed,
19 matches
Mail list logo