Fix to solve class Smarty not found on api request POST to create web-entry HTML based.

This commit is contained in:
Erik Amaru Ortiz
2014-03-20 13:15:12 -04:00
parent 24d0a062a7
commit e8ed52e136
5 changed files with 447 additions and 412 deletions

View File

@@ -477,6 +477,11 @@ class WebEntry
case "HTML":
global $G_FORM;
if (! class_exists("Smarty")) {
$loader = \Maveriks\Util\ClassLoader::getInstance();
$loader->addClass("Smarty", PATH_THIRDPARTY . "smarty".PATH_SEP."libs".PATH_SEP."Smarty.class.php");
}
$G_FORM = new \Form($processUid . "/" . $dynaFormUid, PATH_DYNAFORM, SYS_LANG, false);
$G_FORM->action = $http . $_SERVER["HTTP_HOST"] . "/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN . "/services/cases_StartExternal.php";