请编写一个工作类似的代码,以在Constancemart 3中派生父类别的子类别
<?php
foreach ($category->childs as $child) {
$cattext = vmText::_($child->category_name);
?>
<a href="<?php echo @$caturl ?>" title="<?php echo $child->category_name ?>">
<?php echo $child->category_name ?></a>
变量很多,对我没有帮助
foreach ($this->category->haschildren) {
和许多变体
foreach ($category->child as $child) {
foreach ($category->childs as $child) {
foreach ($category->haschild as $child) {
foreach ($category->haschildren as $child) {
foreach ($category->children as $child) {
此代码也不起作用
echo ShopFunctionsF::renderVmSubLayout('categories',array('categories'=>$this->category->children));