drpudding (4) [Avatar] Offline
#1
When I try to use the displayDate helper I get this error:

Could not determine temp directory, please specify a cache_dir manually

I suspect it is some issue with caching (shared hosting env), but I can't figure out how to specificy a cache_dir or disable the cache.

Thanks!
drpudding (4) [Avatar] Offline
#2
Re: Cache problem when using displayDate
Was able to solve this, so here is a solution if others come upon this.
Zend_Locale has caching enabled and it expects to find the /tmp folder to store cache. On my shared environment, I don't have /tmp, so am setting a new cache dir in bootstrap.

protected function _initLocale()
{
Zend_Locale::setCache(
Zend_Cache::factory(
'Core',
'File',
array(),
array('cache_dir' => '/home/foo/private/tmp_zend')
)
);
}

Seems to work.