From afc02bc1c3db9ffe8c9bf660c8aa08666752edfb Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 8 May 2011 15:26:22 +0000 Subject: h-source:added new EasyGiant SVN version --- h-source/Library/Scaffold.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'h-source/Library/Scaffold.php') diff --git a/h-source/Library/Scaffold.php b/h-source/Library/Scaffold.php index 7ee655d..aa20a4b 100755 --- a/h-source/Library/Scaffold.php +++ b/h-source/Library/Scaffold.php @@ -135,13 +135,13 @@ class Scaffold //initialize the form //$queryType = insert/update //$action: the action of the form (controller/action/queryString) - public function loadForm($queryType,$action) + public function loadForm($queryType,$action,$method = 'POST',$enctype = null) { $this->queryType = $queryType; $submitName = $this->model->getSubmitName($queryType); $value = $this->params['postSubmitValue']; $viewStatus = Url::createUrl(array_values($this->viewArgs)); - $this->model->setForm($action.$viewStatus,array($submitName => $value),'POST'); + $this->model->setForm($action.$viewStatus,array($submitName => $value),$method,$enctype); $this->form = $this->model->form; } -- cgit v1.2.3