[Solar-talk] use getimagesize() in a view
Antti Holvikari
anttih at gmail.com
Mon May 12 12:42:39 CDT 2008
On Mon, May 12, 2008 at 8:32 PM, Jeff Surgeson <solar at 3hex.com> wrote:
> On Monday 12 May 2008 18:07:06 Antti Holvikari wrote:
>> $config['Vendor_Class']['image_path'] = dirname(dirname(__FILE__)) .
>> '/images';
>
> Antti, playing with that got it to work, Thank you!
Glad that it worked for you.
> Maybe I am missing the plot here but I would have though that all the existing
> public path helpers should cater for this, or am I bordering again on the
> verge of a bad practice?
View helpers that use Solar_Uri_(Public) work only with URIs because
the paths that they create are meant to be accessed with a browser,
*not* with your code. That is, they create paths relative to the URI
root. They don't map to your filesystem per se.
Does that make sense?
--
Antti Holvikari <http://anttih.com>
More information about the Solar-talk
mailing list