예제 #1
0
/**
 * Add one or several stylesheet file(s) to the page
 * @param Mixed $css String or array
 */
function use_plop_stylesheet($css)
{
    $version = sfPlop::getVersion();
    $suffix = 'v=' . $version;
    if (is_array($css)) {
        foreach ($css as $f) {
            use_stylesheet($f . (strpos($f, '?') ? '&' : '?') . $suffix, '', array('media' => 'all'));
        }
    } else {
        use_stylesheet($css . (strpos($css, '?') ? '&' : '?') . $suffix, '', array('media' => 'all'));
    }
}
 public function executeIndex()
 {
     $this->version = sfPlop::getVersion();
 }