c::getCategoryNameByPid

概要

商品IDからその商品のカテゴリ名を返します。

使い方

 

引数の内容

  • $pid : 商品IDを指定します。例) $this->pid

 

返り値

string
カテゴリ名が返ります。

使用例