PHP调用未定义的函数 |
您所在的位置:网站首页 › php调用未定义的函数怎么解决 › PHP调用未定义的函数 |
I am trying to call a function from another function. I get an error: Fatal error: Call to undefined function getInitialInformation() in controller.php on line 24controller.php file: require_once("model/model.php"); function intake() { $info = getInitialInformation($id); //line 24 }model/model.php function getInitialInformation($id) { return $GLOBALS['em']->find('InitialInformation', $id); }Things already tried: Verified that the require_once works, and the file exists in the specified location. Verified that the function exists in the file.I am not able to figure this out. Am I missing something here? |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |