Re: [SMARTY] including a browser sniffer's output into my templates

From: Date: Thu, 29 Jul 2004 10:35:01 +0000
Subject: Re: [SMARTY] including a browser sniffer's output into my templates
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11640@lists.php.net to get a copy of this message
hi Robert,
Have you considered using a link element to include the css for you? like <link type="text/css" rel="stylesheet" href="/path/to/specific/stylesheet.css" /> yes, that's exactly what is supposed to be inserted, i just can't figure out how to use the php-driven sniffer's output and put it into my templates.
<link type="text/css" rel="stylesheet" href="{$css}" /> is what i had so far. having the {$css} variable hard-coded into my php file is no problem at all, but as soon as i've got to catch some output of the sniffer (or any other code, for that matter), using smarty->assign('css','$foobar'); prints $foobar into my xhtml output. if fetch() is the solution, would somebody please post an example? - Thorsten

« previous php.smarty.general (#11640) next »