File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ public function open($formSettings = [])
4949 $ this ->tag ->output (["tag " => "form " , "attr " => $ attributes ]);
5050
5151 $ this ->tag ->output (["tag " => "input " , "attr " => ["type " => "hidden " , "name " => $ formname ]]);
52+
53+ $ this ->formcount ++;
54+
5255 echo ob_get_clean ();
5356 return $ this ;
5457 }
Original file line number Diff line number Diff line change @@ -24,8 +24,11 @@ class HTTPHelper
2424 public function __construct ($ config = [])
2525 {
2626 $ this ->setConfig ($ config );
27+ $ this ->form = $ this ->form ?: new Handler ;
2728 $ this ->tag = $ this ->tag ? : new Tag ;
2829 $ this ->CSS = $ this ->CSS ? : new Css ;
30+ $ this ->JS = $ this ->JS ? : new Js ;
31+ $ this ->META = $ this ->META ? : new Meta ;
2932 }
3033
3134 public function setConfig ($ config = [])
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ public function __construct()
1212 public function js ( $ options = [] )
1313 {
1414
15+ if ( !isset ( $ options ["type " ] ) ){
16+ $ options ["type " ] = "text/javascript " ;
17+ }
18+
1519 $ this ->output ( [ "tag " => "script " , "attr " => $ options ] );
1620 $ this ->output ( [ "tag " => "script " , "close " => true ] );
1721 }
You can’t perform that action at this time.
0 commit comments