1
2

More than 5 years have passed since last update.

Yii 1.1.15 メモ

Last updated at Posted at 2014-10-26

アクティブレコード

ディフォルトスコープを無効にする方法

MyModel::model()->resetScope()->findAll();

パンくずリスト

カスタマイズ

<?php if(isset($this->breadcrumbs)):?>
       <?php $this->widget('zii.widgets.CBreadcrumbs', array(
            'links'=>$this->breadcrumbs,
            'homeLink'=>CHtml::link('Main page', Yii::app()->homeUrl), 
            'tagName'=>'ol', // ul -> ol
            'htmlOptions'=>array('class'=>'breadcrumbs'),
            'activeLinkTemplate'=>'<a href="{url}">{label}</a>',
            'inactiveLinkTemplate'=>'<a class="current">{label}</a>',
            'separator'=>'<div class="breadcrumb_separator"></div> ',

       )); ?><!-- breadcrumbs -->
<?php endif?>
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2