Skip to content

Commit 3dfdb74

Browse files
committed
Updates
1 parent 7970012 commit 3dfdb74

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

src/Form/Handler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

src/HTTPHelper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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 = [])

src/Tags/Js.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)