findAll(); // 遍历栏目 foreach ($column_list as $column) { // 获取栏目下的所有内容 $content_list = Content::model()->findAllByAttributes(array('column_id' => $column->id)); // 遍历内容 foreach ($content_list as $content) { // 输出内容标题和链接 echo 'createUrl('content/view', array('id' => $content->id)) . ''>' . $content->title . '
'; } } ?> 极致CMS栏目内容循环调用代码示例

原文地址: http://www.cveoy.top/t/topic/n4D9 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录