fixing small issues with rest
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
function hanga_anonymous($class) {
|
||||
/*
|
||||
This array has a map of (class => file)
|
||||
*/
|
||||
@@ -112,6 +112,7 @@ spl_autoload_register(function ($class) {
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
}
|
||||
spl_autoload_register( "hanga_anonymous" );
|
||||
|
||||
|
||||
|
||||
2
workflow/engine/bin/rest-gen
Normal file → Executable file
2
workflow/engine/bin/rest-gen
Normal file → Executable file
@@ -9,7 +9,7 @@
|
||||
* @author Erik Amaru Ortiz <aortiz.erik@gmail.com>
|
||||
*/
|
||||
|
||||
include dirname(__FILE__) . '/../../../gulliver/Core/Bootstrap.php';
|
||||
include dirname(__FILE__) . '/../../../gulliver/core/Bootstrap.php';
|
||||
include dirname(__FILE__) . '/../../../workflow/engine/PmBootstrap.php';
|
||||
|
||||
$config = array(
|
||||
|
||||
@@ -87,7 +87,7 @@ class Service_Rest_RestTool
|
||||
$configIniStr .= "[$table]\n";
|
||||
$configIniStr .= " ; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE\n";
|
||||
$configIniStr .= " ALLOW_METHODS = GET\n";
|
||||
$configIniStr .= " ; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.\n";
|
||||
$configIniStr .= " ; Params to set columns that should be exposed, you can use wildcard '*' to specify all columns.\n";
|
||||
$configIniStr .= " EXPOSE_COLUMNS_GET = *\n";
|
||||
$configIniStr .= " EXPOSE_COLUMNS_POST = ".$strColumns."\n";
|
||||
$configIniStr .= " EXPOSE_COLUMNS_PUT = ".$strColumns."\n";
|
||||
|
||||
Reference in New Issue
Block a user