【问题标题】:How to display name of current category being searched in osclass如何在 osclass 中显示正在搜索的当前类别的名称
【发布时间】:2016-02-07 11:53:35
【问题描述】:

我想在标题的类别字段中显示当前正在搜索的类别的名称。

我试过这段代码,但它显示“数组”。

<?php echo osc_search_category(); ?>

有什么想法吗?

【问题讨论】:

  • TRy , $p=array(); $p=osc_search_category(); print_r($p);
  • 它没有显示我想要的。

标签: php osclass


【解决方案1】:

我发现以下代码对我有用

$cName = Category::newInstance()->findNameByPrimaryKey(osc_search_category_id());

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多