將其他數據傳遞到我的REST服務器時效果不佳。 我有這個簡單的Ajax調用: // Client
$(document).on('click', '#car', function(e){
e.preventDefault();
var name = $(this).data('name'); // Tesla
var model = $(this).data('mo
可以說我有兩個表:用戶和組織 users:
id int,
name varchar,
type int,
deleted bool
organisations:
id int,
name varchar
deleted bool
,我想用的類型1名用戶組織排序。我知道,當我想通過關係值排序我必須使用加入: $organisationsModel -> join('users
我對php項目結構不是很有經驗,我發現了這個真棒和簡單的教程:https://arjunphp.com/creating-restful-api-slim-framework/如何創建簡單的苗條休息應用程序。 這實際上是PHP SLIM的官方項目結構,我的問題是,什麼是最好的和適當的方式來添加和使用紅豆PHP的ORM,我不希望每一個航線上,包括像這樣 use \RedBeanPHP\R as R;