This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This one is cebe's personal list.
// My code | |
<?php | |
$collection=\app\models\Notifications::getCollection()->name; | |
if ($this->beginCache('Notifghjgjhgication', ['dependency' => [ | |
'class' => 'yii\caching\DbQueryDependency', | |
'query' => \app\models\Notifications::find()->where(["receiver_type" => "vendor", "receiver_id" => \Yii::$app->user->identity->_id, 'read_status' => FALSE]), | |
'method' => 'count', | |
]])) {?> | |
<li class="dropdown" id="Notification-list-container"> | |
<?= Yii::$app->runAction('/notification/default/notificationlist') ?> |
a: | |
lorem.ipsum | |
x: | |
lorem.dolor | |
y: | |
lorem.sit | |
b: |
<?php $this->widget('zii.widgets.CDetailView', array( | |
'data'=>$model, | |
'attributes'=>array( | |
'id', | |
'location', | |
'date', | |
array( | |
'label'=>'attendees', | |
'value'=>$model->attendees!=null ? null : $model->attendees->username, | |
), |
<?php $this->widget('zii.widgets.CDetailView', array( | |
'data'=>$model, | |
'attributes'=>array( | |
'id', | |
'location', | |
'date', | |
array( | |
'label'=>'attendees', | |
array( | |
'attendees'=>$model->attendees!=null ? ' ' : $model->attendees->username), |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This one is cebe's personal list.