git-svn-id: https://msi/svn/firstRepo/Service/branches/Manut_2.2.3@49 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
+13
-1
@@ -30,7 +30,7 @@ $app->get('/typeqtys', function () use ($app) {
|
||||
returnJsonWithDecode($app, $callbackFn, $retObj);
|
||||
});
|
||||
|
||||
$app->get('/categoryitems/:catID', function ($categoryID) use ($app) {
|
||||
$app->get('/ricette/:catID', function ($categoryID) use ($app) {
|
||||
$callbackFn = $app->request()->get('callback');
|
||||
$mysqlconnetion = new MysqlClass;
|
||||
//$mysqlconnetion->connetti();
|
||||
@@ -197,6 +197,18 @@ $app->get('/statistics/themesUsage', function () use ($app) {
|
||||
|
||||
$query = "SELECT 'TemaUI' as Type, TemaUI as Serie, COUNT(TemaUI) as CountSerie from profilo GROUP BY TemaUI";
|
||||
|
||||
$mysqlconnetion = new MysqlClass;
|
||||
//$mysqlconnetion->connetti();
|
||||
$retObj = $mysqlconnetion->queryToObject($query);
|
||||
$mysqlconnetion->disconnetti();
|
||||
returnJson($app, $callbackFn, $retObj);
|
||||
});
|
||||
|
||||
$app->get('/profiles', function () use ($app) {
|
||||
$callbackFn = $app->request()->get('callback');
|
||||
|
||||
$query = "SELECT ProfiloID as id, Name as name from profilo where name <> '' order by Name";
|
||||
|
||||
$mysqlconnetion = new MysqlClass;
|
||||
//$mysqlconnetion->connetti();
|
||||
$retObj = $mysqlconnetion->queryToObject($query);
|
||||
|
||||
Reference in New Issue
Block a user