hi,
i have added an image in the model:
public static $has_one = array(
"Photo" => "Image"
);
how can i access it from controller?
when i call
print_r($this)
in controller, i can see the reference to the photo in the listing, but i can't find a way to access it.
when i try
$this->Photo
i get an undefined.but accessing any other custom entry from static db array
public static $db = array(
"Abstract" => "Text",
"Phone1" => "Text",
"Phone2" => "Text"
);
works.
so, is there a way to access $Photo?