ArgumentCountError

parse_str() expects exactly 2 arguments, 1 given

/home/magnustech/domains/magnus-tech.pl/public_html/protected/myWidgets/widget_imageWidget.php(8)

01 <?php
02 
03 class widget_imageWidget extends CWidget {
04 
05     public $conf;
06 
07     public function init() {
08         parse_str($this->conf['value']);
09          $images = widget_image::model()->findAll(array('condition' => "id_image='$id_image'",
10             'order' => 'id_image asc'));
11         if($link!=''){
12             $href=$link;
13             $cl='';
14         }else {
15            $href=$src;
16            $cl=' fancybox'; 
17         }
18         $ext = substr($src, -3, strlen($src));
19         $out.='<a href="' . $href. '" class="imageHolder'.$cl.' separataImage" rel="gallery' . $gallery . '">
20                     <img src="cache/images/' . $id_image . '.' . ($ext) . '" alt="" />

Stack Trace

#0
+
 /home/magnustech/domains/magnus-tech.pl/public_html/protected/myWidgets/widget_imageWidget.php(8): parse_str("src=assets/pliki/produkty/separatory/atol.png&name=&description=...")
03 class widget_imageWidget extends CWidget {
04 
05     public $conf;
06 
07     public function init() {
08         parse_str($this->conf['value']);
09          $images = widget_image::model()->findAll(array('condition' => "id_image='$id_image'",
10             'order' => 'id_image asc'));
11         if($link!=''){
12             $href=$link;
13             $cl='';
#3
+
 /home/magnustech/domains/magnus-tech.pl/public_html/themes/classic/views/site/productDetail.php(35): CBaseController->widget("application.myWidgets.widget_imageWidget", array("conf" => array("id_image" => "1265", "img_type" => "18", "id_element" => "0", "title" => "", ...)))
30             } else {
31 
32                 $v['labels'] = $this->labels;
33                 $this->widget('application.myWidgets.' . $v['alias'] . 'Widget'
34                         , array(
35                     'conf' => $v
36                         )
37                 );
38                 if ($v['alias'] != 'widget_image') {
39                     echo '<div class="clear"></div>';
40                 }
#8
+
 /home/magnustech/domains/magnus-tech.pl/public_html/protected/controllers/SiteController.php(627): CController->render("productDetail")
622     public function actionProductList() {
623         $this->render('productList');
624     }
625 
626     public function actionProductDetail() {
627         $this->render('productDetail');
628     }
629 
630     public function actionProductCatList() {
631         $this->render('productCatList');
632     }
2024-03-28 19:08:49 LiteSpeed Yii Framework/1.1.12