本文整理汇总了PHP中app\models\Setting::getDesc方法的典型用法代码示例。如果您正苦于以下问题:PHP Setting::getDesc方法的具体用法?PHP Setting::getDesc怎么用?PHP Setting::getDesc使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\models\Setting
的用法示例。
在下文中一共展示了Setting::getDesc方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionIndex
public function actionIndex()
{
$setting = new Setting();
$data['siteName'] = $setting->getSiteName()->value;
$data['address'] = $setting->getAddress()->value;
$data['nickName'] = $setting->getNickName()->value;
$data['desc'] = $setting->getDesc()->value;
return $this->render('index', ['info' => $data]);
}
示例2: Article
</div>
<div style="width:30%;float: left;padding-left: 20px;">
<div class="part">
<div class="part_head">关于</div>
<div class="contain">
<div class="avater_center">
<div id="avater">
<img src="/img/avater.jpg">
</div>
</div>
<p class="my_desc"><?php
echo $setting->getNickName()->value;
?>
</p>
<p class="my_desc"><?php
echo $setting->getDesc()->value;
?>
</p>
</div>
</div>
<div class="part">
<div class="part_head">最热文章</div>
<div class="contain">
<?php
$article = new Article();
$hots = $article->getHot();
foreach ($hots as $hot) {
?>
<p class="hot">
<span class="hot_title">
<a href="<?php