0

I am using Zend Framework MVC and unit-testing with SimpleTest library. I have a specific model that keeps failing because it uses Zend Cache and the cache directory is a relative path I was wondering if anyone has seen a problem like this b4. Thanks.

Charles
  • 50,943
  • 13
  • 104
  • 142
L Digital Dash
  • 119
  • 1
  • 2
  • 9
  • Are you getting any PHP errors at all? – Ryan McCue Sep 23 '09 at 01:48
  • No I am getting an exception here is the exact Unexpected exception of type [Zend_Cache_Exception] with message [cache_dir must be a directory] in [C:\wamp\www\music\library\Zend\Cache.php line 208] – L Digital Dash Sep 23 '09 at 15:38

1 Answers1

0

I had to make an absolute path using $_SERVER['DOCUMENT_ROOT'] that way no matter what file structure I am on it works. a Truly relative path. lol.

L Digital Dash
  • 119
  • 1
  • 2
  • 9