protected function _addExt($file, $ext) { if (substr($file, strlen($ext) * -1) !== $ext) { $file .= $ext; } return $file; }