在其中一项操作中,我需要将图像返回给用户。有没有办法用 DooPHP 实现这一点?
示例操作代码:
public function view() {
$path = $this->params['path']; // contains path to the image
// $this->render($path); // does not work
}
谢谢,节日快乐!
我在 DooPHP 框架中找不到任何东西,只是按照这个答案中描述的 php 方式结束了它:https ://stackoverflow.com/a/900228/39843