No estás agregando la ruta:
Código PHP:
Ver original$respuestas = ModeloArticulos::mdlGetArticlesByAuthorId($authorId);
$ruta = 'img/articles/';
$i = 0;
foreach ($respuestas as $respuesta) {
$datos[$i] =
'articleId' => $respuesta["id"],
'title' => $respuesta["title"],
'content' => $respuesta["content"],
// Solo concatena la ruta y listo!
'photo_url' => $ruta . $respuesta["photo"]
)
$i++;
}
return $datos;