From f9777c989ce04d33288655ea4d1c274bd5b90b5f Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 1 Sep 2010 18:28:32 +0300 Subject: return row count on delete --- MainView.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'MainView.php') diff --git a/MainView.php b/MainView.php index 2e5ad0c..2c3be45 100644 --- a/MainView.php +++ b/MainView.php @@ -32,6 +32,20 @@ class MainView } + // $this->mainView->form('/some/save')-> + function action($action) + { + $port = ($_SERVER['SERVER_PORT'] > 80) ? ':'.$_SERVER['SERVER_PORT'] : ''; + $base = str_replace('index.php', '', $_SERVER['PHP_SELF']); + return 'action="'.$base.$action.$port.'"'; + } + + function form($action) + { + $port = ($_SERVER['SERVER_PORT'] > 80) ? ':'.$_SERVER['SERVER_PORT'] : ''; + $out = '
tag('input', $params); -- cgit v1.2.3