Skip to content

Commit 73aa8ef

Browse files
committed
cake component
1 parent fc9cadf commit 73aa8ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Ajax/php/cakephp/JsUtilsComponent.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
namespace App\Controller\Component;
34

45
use Ajax\php\cakephp\_JsUtils;
56
use Cake\Controller\Component;
@@ -10,10 +11,11 @@ class JsUtilsComponent extends Component {
1011
* @var Ajax\php\cakephp\_JsUtils
1112
*/
1213
public $jquery;
14+
public function initialize(array $config){
1315
\extract($config);
1416
$this->jquery=new _JsUtils();
1517
if(isset($semantic)){
1618
$this->jquery->semantic(new Semantic());
1719
}
1820
}
19-
}
21+
}

0 commit comments

Comments
 (0)