debug($attachment); object(App\Model\Entity\Attachment) { 'id' => (int) 73, 'apartment_id' => (int) 1, 'name' => 'bla bla bla', 'caption' => 'bla bla', 'position' => (int) 1, '_locale' => 'eng', '[new]' => false, '[accessible]' => [ '*' => true ], '[dirty]' => [], '[original]' => [ 'caption' => 'original caption' # <---- HOW TO PRINT THIS DATA ], '[virtual]' => [], '[errors]' => [], '[repository]' => 'Attachments' } echo $attachment->caption; # bla bla
How to access and print?
'[original]' => [ 'caption' => 'original caption' ],
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment