Skip to Main Content
Home

Richard@Home

Filtering out the crap so you don't have to
  • Portfolio
  • About
  • Life Feed
  • Contact
Home » Developement

CSS

Richard's picture

CakePHP Quick tip: Adding CSS links to $scripts_for_layout in 1.3

Posted Thu, 11/19/2009 - 06:03 by Richard

Got caught with this one upgrading from an older version of CakePHP to 1.3

In your view, to add a css file to the $script_for_layout variable, you used to do this:

<?php $html->css("css_file", null, array(), false); ?>

In 1.3, you have to change this to:

  • Richard's blog
  • 2 comments
  • Read more

Tags in Richard@Home

CakePHP Drupal GeekUp Helper MySQL Pagination Paginator PHP presentation Sheffield Sort tip
more tags

Recently on Richard@Home

  • Quick Tip: Drupal Drush Out of Memory Error on Ubuntu
  • PHP function any_in_array - tests if any of $needles are in $haystack
  • CakePHP: Extend PaginatorHelper to indicate sort field and direction
  • CakePHP: Smarter links
  • Quick CakePHP Tip: Prefix/Admin Routing and form->create()
  • CakePHP Quick tip: Adding CSS links to $scripts_for_layout in 1.3
  • MySQL: Disable foreign keys while updating database
  • CakePHP: Pagination with Containable
  • einstein_www
  • Must Have Software
  • 1
  • 2
  • next ›
  • last »

Syndicate content

Syndicate

Syndicate content

free debate