In the tutorial about the staff section that uses a has_many array to store an image for the page type. I see that in the ss page using $Photo returns an entire img tage with source etc. I want to just get the filename of the image. In my controller I added a function like this:
public function ImageFilename() {
return $this->Photo->Filename;
}
This does not work but I am wondering why it doesn't work so I can better understand how SS works.