Slim显示尝试调用函数时的应用程序错误

问题描述 投票:0回答:1

当我尝试以苗条的方式调用函数时,它显示应用程序错误,我无法找出实际的错误

if(is_a_valid_route_user_action($this->from_user['action_id']))

     {
        return get_action_id_from_route_user_action($this->from_user['action_id']);

        }

get_action_id_from_route_user_action是正在尝试调用的函数

if(!function_exists('get_action_id_from_route_user_action'))
{
    function get_action_id_from_route_user_action($organization_id,$route_user_action_id)
    {

        $db = org_db_connection($organization_id);

        $get_previous_level_sql = "SELECT action_id from route_user_actions where id=".$route_user_action_id;

        $get_previous_level_object = mysqli_query($db, $get_previous_level_sql);

        if ($get_previous_level_object->num_rows > 0)
        {
            while($get_previous_level= mysqli_fetch_assoc($get_previous_level_object))
            {
                $action_id = (int)$get_previous_level['action_id'];
                return $action_id;
            }
        }
        else
        {
            return false;
        }
    }
}

enter image description here

php api slim
1个回答
1
投票

我启用了错误报告,并且可以正常工作

© www.soinside.com 2019 - 2024. All rights reserved.