how to check file exist in extension folder

i try to used php file_exists to check if file is exist or not in protected/extension.

but it can’t give result because the folder is protected.

i wonder how to check file exists in protected/extension folder?


You might find this extension very helpful:

thanks for your suggestion.

i wonder is there any yii function to check file exist.

i mean without using an extension.