Discuz教程网

[已解决]请教个问题,view.htm文件中的$content[content]是在哪定义的?

[复制链接]
authicon a77 发表于 2015-3-21 20:05:24 | 显示全部楼层 |阅读模式
请教个问题,view.htm文件中的$content[content]是在哪定义的?

\template\default\portal\view.htm文件中的$content[content]是在哪定义的?
是在\source\module\portal\portal_view.php这个文件吗!
如果是的话,我想给图片添加个class,<img class= 之类的,具体在哪一段改?!

在\source\module\portal\portal_view.php文件里,我找到了下面这段,难道是在这里改???
$replaces[$attach['aid']] = "<a href=\"javascript:;\"><img id=\"_aimg_$attach[aid]\"

最佳答案
avatar
2015-3-21 22:52:53
source\module\portal\portal_view.php
  1. $content = C::t('portal_article_content')->fetch_by_aid_page($aid, $page);
复制代码


$content[content]的具体内容在你发帖时就生成好存入数据库的



上一篇:浓香特级安溪铁观音茶叶 礼盒装高档商务礼品
下一篇:阿里的老会员为什么会选择建企业网站?
authicon dly 发表于 2015-3-21 22:52:53 | 显示全部楼层    本楼为最佳答案   
source\module\portal\portal_view.php
  1. $content = C::t('portal_article_content')->fetch_by_aid_page($aid, $page);
复制代码


$content[content]的具体内容在你发帖时就生成好存入数据库的
authicon  楼主| a77 发表于 2015-3-22 01:24:25 | 显示全部楼层
dly 发表于 2015-3-21 22:52
source\module\portal\portal_view.php

谢了
那我想给图片添加个class,比如 <img class= ,具体在哪一段改?!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-4-19 21:14

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表