Re: [horde] Image path resolution

From: Date: Wed, 25 Aug 2004 02:49:43 +0000
Subject: Re: [horde] Image path resolution
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11714@lists.php.net to get a copy of this message
Chuck Hagenbuch wrote:
Quoting Richard Wallace <rwallace@thewallacepack.net>:
We're implementing our web applications using the Horde architecture. The best solution that we've come up with so far is to create a Horde::imgUrl() method which does practically the same thing as Horde::img() but returns only the URI to the image, not a complete path. Is there a better way of doing this?
$registry->getParam('graphics', 'appname')
That's actually the way we wound up doing it, or at least close to it.
We will likely be having the same issue with trying to resolve the URIs to external javascript and css files. Any suggestions on how best to handle these things?
What do you mean by external?
External javascript and css files, i.e. not embedded in the html of the page itself. Stuff like <script language=javascript src=foo.js>. But we be able to do the same thing for these by adding 'script' and 'style' parameters to the application settings in the registry.php file. Sound reasonable enough? Rich

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