當前位置: 首頁>>代碼示例>>PHP>>正文


PHP StringHelper::makeUrlString方法代碼示例

本文整理匯總了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>
開發者ID:huynt57,項目名稱:bluebee-uet.com,代碼行數:31,代碼來源:Search.php

示例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;
?>
開發者ID:huynt57,項目名稱:bluebee-uet.com,代碼行數:31,代碼來源:teacher.php

示例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 
}
開發者ID:huynt57,項目名稱:bluebee-uet.com,代碼行數:30,代碼來源:subject.php

示例4:

            echo $doc->doc_description;
            ?>
</span>
            <!--                                                                                <em class="timestamp"><i class="icon-time"></i>&nbsp;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; 
                                                                               }
開發者ID:huynt57,項目名稱:bluebee-uet.com,代碼行數:31,代碼來源:user.php


注:本文中的StringHelper::makeUrlString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。