모델 내에서 Codeigniter의 /application/
폴더 (예 : /application/schematics/myfile.png
) 폴더의 하위 폴더에있는 파일을 삭제하려면 어떻게해야합니까?
schematics/myfile.png
과 같은 파일의 경로도 있습니다. 나는 응용 프로그램 폴더에서 자원 폴더를 생성하는 것이 좋습니다모델에서 응용 프로그램 폴더에있는 파일에 액세스하는 방법은 무엇입니까?
$path = APPPATH.'/schematics/myfile.png';
그래서 'unlink (APPPATH.'/ schematics/myfile.png ')'를 사용하면 모델 내에서 작동합니까? –
그것은 당신을 위해 일 했나요? @AndreiOniga –