Added FCPs to TheToolAdded WarehouseOffer and WarehouseOfferTemplate, also fixed menu for Lager Point
This commit is contained in:
@@ -33,8 +33,13 @@ class TTCrud extends mfBaseController {
|
||||
$this->redirect("Dashboard");
|
||||
}
|
||||
|
||||
$modelName = str_replace('Controller', 'Model', get_class($this));
|
||||
$this->model = new $modelName();
|
||||
$c = get_class($this);
|
||||
foreach ([str_replace('Controller', 'Model', $c), str_replace('Controller', '', $c)] as $m)
|
||||
if (class_exists($m)) {
|
||||
$this->model = new $m();
|
||||
break;
|
||||
}
|
||||
|
||||
$this->postData = json_decode(file_get_contents('php://input'), true);
|
||||
$this->checkArray = $this->getCheckArray();
|
||||
$this->infoMessages = $this->getInfoMessages();
|
||||
|
||||
Reference in New Issue
Block a user