I have a database with images associated to each entry.
Anyhow, some entries don’t have an image.
Googling I found some js and php way to apply in the view, but I’m pretty sure there is a (much nicer) MVC-way to do this, just I don’t know how..
Is there a nice Cake-way to display placeholder image where none exist?
Supposed the data you set from the controller named ‘post’. And you have ‘your_default_image’ in your /app/webroot/img/
And you can wrap those logic in your helper.