動体視力トレーニングメガネ

  • 【大人向け】動体視力トレーニングメガネ Visionup

    PHP warning

    PHP warning

    count(): Parameter must be an array or an object that implements Countable

    /home/users/2/kawachi1/kawachi_git/naha_regi/src/framework/db/ar/CActiveFinder.php(587)

    575                     break;
    576                 }
    577             }
    578 
    579             if(!$fkDefined)
    580             {
    581                 $parentCondition=array();
    582                 $childCondition=array();
    583                 $count=0;
    584                 $params=array();
    585                 foreach($fks as $i=>$fk)
    586                 {
    587                     if($i<count($parent->_table->primaryKey))
    588                     {
    589                         $pk=is_array($parent->_table->primaryKey) ? $parent->_table->primaryKey[$i] : $parent->_table->primaryKey;
    590                         $parentCondition[$pk]=$joinAlias.'.'.$schema->quoteColumnName($fk).'=:ypl'.$count;
    591                         $params[':ypl'.$count]=$record->$pk;
    592                         $count++;
    593                     }
    594                     else
    595                     {
    596                         $j=$i-count($parent->_table->primaryKey);
    597                         $pk=is_array($this->_table->primaryKey) ? $this->_table->primaryKey[$j] : $this->_table->primaryKey;
    598                         $childCondition[$pk]=$this->getColumnPrefix().$schema->quoteColumnName($pk).'='.$joinAlias.'.'.$schema->quoteColumnName($fk);
    599                     }
    

    Stack Trace

    #4
    +
     /home/users/2/kawachi1/kawachi_git/naha_regi/src/protected/siteHelper/KawachiItemHelper.php(17): CActiveRecord->__get("categories_main")
    12      * @return array
    13      */
    14     static public function getMainCategories( $model )
    15     {
    16         $return = array();
    17         foreach( $model->categories_main as $main )
    18         {
    19             $return[] = $main->categori_name;
    20         }
    21         return array_unique($return);
    22     }
    
    #5
    +
     /home/users/2/kawachi1/kawachi_git/naha_regi/src/ec_theme/default/categories/index.html(86): KawachiItemHelper::getMainCategories(ProductsModel)
    81           <a href="<?php echo Yii::app()->getBaseUrl(true); ?>/archives/<?php echo $product->link_url; ?>.html">
    82               <?php echo $product->item_name; ?>
    83           </a>
    84         </h3>
    85         <p class="maker">
    86           <?php echo implode(' ', KawachiItemHelper::getMainCategories( $product ) ); ?>
    87         </p>
    88         <p class="textL"><?php echo $product->item_id; ?></p>
    89         <p class="price">
    90           <?php if( $product->sku[0]->sale_price == 0 ): ?>
    91             販売はお問い合わせのみです
    
    #8
    +
     /home/users/2/kawachi1/kawachi_git/naha_regi/src/protected/controllers/EcpagesController.php(256): CBaseController->renderFile("/home/users/2/kawachi1/web/kawachi/ec_theme/default/categories/i...", array("template_path" => "//www.eyewear-kawachi.co.jp/ec_theme/default/", "category" => CategoryModel, "children" => array(), "items" => array(ProductsModel, ProductsModel), ...))
    251         //共通データ処理
    252         $this->setCommonData( $data );
    253 
    254         //ビューの表示
    255         $this->currentTemplate = $this->themeDirInside.'categories/index.html';
    256         $this->renderFile( $this->currentTemplate, $data );
    257     }
    258 
    259     // ----------------------------------------------------
    260 
    261     /**
    
    2021-12-04 22:52:57 Apache Yii Framework/1.1.14