本文整理汇总了PHP中StringHelper::makeUrlString方法的典型用法代码示例。如果您正苦于以下问题:PHP StringHelper::makeUrlString方法的具体用法?PHP StringHelper::makeUrlString怎么用?PHP StringHelper::makeUrlString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StringHelper
的用法示例。
在下文中一共展示了StringHelper::makeUrlString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
} else {
foreach ($user_result as $user) {
?>
<div class="result-user clearfix">
<a class="search-avatar-view relative float-left" href="<?php
echo Yii::app()->createUrl('user') . "/" . $user->user_id . "/" . StringHelper::makeUrlString($user->username);
?>
">
<img class="" width="70" height="70" src="<?php
echo $user->user_avatar;
?>
" style="opacity: 1;min-height: 70px; min-width: 70px; max-height: 70px;">
</a>
<div class="info">
<a href="<?php
echo Yii::app()->createUrl('user') . "/" . $user->user_id . "/" . StringHelper::makeUrlString($user->user_real_name);
?>
">
<span id="el-105"><?php
echo $user->user_real_name;
?>
</span>
</a>
</div>
</div>
<?php
}
}
?>
</div>
示例2:
<i class="icon-star"></i>
</span>
</div>
</div>
</div>
<!--cmt facebook-->
</div>
<div>
<h3>Bình luận</h3>
<div class="fb-like" data-href="<?php
echo Yii::app()->createAbsoluteUrl('share/teacher') . "/" . $teacher['teacher_id'] . "/" . StringHelper::makeUrlString($teacher['teacher_name']);
?>
" data-layout="standard" data-action="like" data-show-faces="false" data-share="true"></div>
<div class="fb-comments" data-href="<?php
echo Yii::app()->createAbsoluteUrl('share/teacher') . "/" . $teacher['teacher_id'] . "/" . StringHelper::makeUrlString($teacher['teacher_name']);
?>
" data-width="1000" data-numposts="8" data-colorscheme="light"></div>
</div>
</div>
</div>
</div>
</div>
<?php
}
?>
<script type="text/javascript" src="<?php
echo Yii::app()->theme->baseUrl;
?>
示例3: function
/*
Next control initialization
*/
$('.jcarousel-control-next')
.on('jcarouselcontrol:active', function() {
$(this).removeClass('inactive');
})
.on('jcarouselcontrol:inactive', function() {
$(this).addClass('inactive');
})
.jcarouselControl({
// Options go here
target: '+=1'
});
});
</script>
<div style="margin-left: 0px !important" class="fb-comments" data-href="<?php
echo Yii::app()->createAbsoluteUrl('listOfSubject/subject') . "/" . $subject->subject_id . "/" . StringHelper::makeUrlString($subject->subject_name);
?>
" data-width="1000" data-numposts="8" data-colorscheme="light"></div>
</div>
</div>
</div>
<!--cmt facebook-->
</div>
</div>
<?php
}
示例4:
echo $doc->doc_description;
?>
</span>
<!-- <em class="timestamp"><i class="icon-time"></i> June 26, 2014</em>-->
</a>
</div>
<!-- <ul class="document_status clearfix">
<li class="score"><i class="icon-heart"></i>2000</li>
<li class="view"><i class="icon-eye-open"></i>1999</li>
<li class="comment"><i class="icon-comment"></i>1203</li>
</ul>-->
</div>
</div>
<div class="name_document"><a class="name_document" href="<?php
echo Yii::app()->createAbsoluteUrl('viewDocument') . "/" . $doc->doc_id . "/" . StringHelper::makeUrlString($doc->doc_name);
?>
"><strong><?php
echo $doc['doc_name'];
?>
</strong></a></div>
</li>
<?php
}
}
?>
</ol>
<style>
#pagination-doc ul li { display: inline;
}