Surgery/PatientBundle/Constroller/RegistrationPatientBundleController にコントローラーがあり、Surgery/PatientBundle/Resources/public/images/test.jpg に画像があります。この画像へのパスは?コントローラーでこのコードを試しました
public testAction(){
header ( 'Content-Type: image/jpeg' );
$image = imagecreatefromjpeg("../Resources/public/images/test.jpg");
imagejpeg($image);
しかし、ファイルが見つかりません。