如果将错误消息添加到$_error数组中,则有两个类返回json编码的数组:public function showResponse() if(!($this->_error); else { }UserTools.class.php:
public function showResponse() === true && $user_tools->showResponse() ===
我正在尝试将showResponse函数中的showResponse变量传递给我的控制器。我一直在努力想出一个没有成功的解决办法。有人能引导我朝正确的方向前进吗?scope.videoUrl = videoUrl;function showResponseautomatically with the response of the YouTube API request.
function