Friday, August 28, 2009

Re: how to add css to individual view.

Hi,

If you want to include extra.css to your view, add this code to your view
file:

<?php $html->css('extra',null,null,false); ?>

In your layout, make sure that there's this line somewhere between the
<head> tags (already included in the default layout):

<?php echo $scripts_for_layout; ?>

Read the CakePHP book for more info:

http://book.cakephp.org/view/831/css

Have fun!

Melgior.


ruchika batra wrote:
>
> hiI am a beginner.i want to add css to the individual view i have
> created.please help me how to do that.thanks in advance.
>
> >
>
>

--
View this message in context: http://www.nabble.com/how-to-add-css-to-individual-view.-tp25191224p25191569.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: