以下是极致CMS调用各个栏目下的内容大循环代码:

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

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

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