<?php if ($question_info = TPL::val('question_info')) { $question_info['question_detail'] = AWS_APP::model('aws_tinymce')->parse_bbcode($question_info['question_detail']); TPL::assign('question_info', $question_info); $answers = TPL::val('answers'); if ($answers) { foreach ($answers AS $key => $val) { $answers[$key]['answer_content'] = AWS_APP::model('aws_tinymce')->parse_bbcode($val['answer_content']); } TPL::assign('answers', $answers); } } else if ($topic_info = TPL::val('topic_info')) { $topic_info['topic_description'] = AWS_APP::model('aws_tinymce')->parse_bbcode($topic_info['topic_description']); TPL::assign('topic_info', $topic_info); }
AI智能回复搜索中,请稍后...
1 回答
// 注册 Model, 用 $this->model('name') 访问 'model' => array( 'class_name' => 'aws_tinymce_class', // Model name, 以 _class 结尾 'include' => 'aws_tinymce_class.php', // 引入代码文件位置 ),但示例程序里面写的都是
$question_info['question_detail'] = AWS_APP::model('aws_tinymce')->parse_bbcode($question_info['question_detail']);谁能给说明一下呢?