|
Re: Problem with view helper paths: msg#00110php.zend.framework.mvc
Janimatti Ellonen kirjoitti: Hi! The following piece of code seems to solve the problem. Actually I used the same code when I hade the same problem with 1.5.0PR. Current version of method in Zend_Loader (1.5.2) which makes my app go bonkers: public static function isReadable($filename) { if (!$fh = @fopen($filename, 'r', true)) { return false; } return true; } My version, which keeps my app happy: public static function isReadable($filename) { if (@is_readable($filename)) { return true; } $path = get_include_path(); $dirs = explode(PATH_SEPARATOR, $path); foreach ($dirs as $dir) { if ('.' == $dir || '..' == $dir) { continue; } if (@is_readable($dir . DIRECTORY_SEPARATOR . $filename)) { return true; } } return false; } - - - Janimatti Ellonen |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Importing SlashDot's RSS Feed with Zend_Feed: 00110, arthur-yp+LExksPPTQT0dZR+AlfA@xxxxxxxxxxxxxxxx |
|---|---|
| Next by Date: | Re: Re: Problem with view helper paths: 00110, Matthew Weier O'Phinney |
| Previous by Thread: | Problem with view helper pathsi: 00110, Janimatti Ellonen |
| Next by Thread: | Re: Re: Problem with view helper paths: 00110, Matthew Weier O'Phinney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |