Skip to content

Commit f0334f9

Browse files
committed
Fix modules command on Framework
1 parent ceb3717 commit f0334f9

File tree

2 files changed

+265
-211
lines changed

2 files changed

+265
-211
lines changed

application/class/Asynchonous.php

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,56 @@
66
class Asynchonous
77
{
88
private $_css;
9-
private $_javascript;
9+
private $_body_css;
10+
private $_header_javascript;
11+
private $_footer_javascript;
1012

1113
public function __construct()
1214
{
1315
$this->_css = "";
14-
$this->_javascript = "";
16+
$this->_body_css = "";
17+
$this->_header_javascript = "";
18+
$this->_footer_javascript = "";
1519
}
1620

1721
public function addCss($code)
1822
{
1923
$this->_css .= "\n";
2024
$this->_css .= $code;
2125
}
22-
23-
public function addJs($code)
26+
public function addBodyCss($code)
27+
{
28+
$this->_body_css .= "\n";
29+
$this->_body_css .= $code;
30+
}
31+
public function addHeaderJs($code)
2432
{
25-
$this->_javascript .= "\n";
26-
$this->_javascript .= $code;
33+
$this->_header_javascript .= "\n";
34+
$this->_header_javascript .= $code;
35+
}
36+
public function addFooterJs($code)
37+
{
38+
$this->_footer_javascript .= "\n";
39+
$this->_footer_javascript .= $code;
2740
}
2841

2942
public function printCss()
3043
{
3144
echo $this->_css;
3245
}
3346

34-
public function printJs()
47+
public function printBodyCss()
48+
{
49+
echo $this->_body_css;
50+
}
51+
52+
public function printHeaderJs()
53+
{
54+
echo $this->_header_javascript;
55+
}
56+
57+
public function printFooterJs()
3558
{
36-
echo $this->_javascript;
59+
echo $this->_footer_javascript;
3760
}
3861
}

0 commit comments

Comments
 (0)