I'm a little bit confused about the way I used to get the Image - Class in Page Controller.
in older Silverstripe - installations i got the Image that i defined in Page-Class via:
class Page_Controller extends ContentController {
$actPage = DataObject::get_by_id("Page", $this->ID);
return $actPage->Image()->CroppedImage(100, 100);
}
im an actual installation i get an Exception: Object->__call(): the method 'image' does not exist on 'Page'
'image does not exist on Page' ?!
can anyone Help?
thanks