Yii Framework Forum

Calendar View Widget Extension


(Mark) #1

Hey guys,

this is the topic to ask any questions, have suggestions, ideas or feature requests.

Feel free to ask anything.

Extension:

Yii2 Calendar View Widget

Project page on GitHub:

https://github.com/marekpetras/yii2-calendarview-widget

Screenshot:

Cheers,

Marek


(Jtchandler) #2

Just wondering what would be the proper way to include this on a page from another controller?


(Juan Carlos Reyes Suazo) #3

Im trying to include this widget in my app but as I’ve seen the code is incomplete and it has errors in the CalendarSearch model.

$query = Activity::find()->where(['user_id'=>Yii::$app->user->getId()]);

I believe it’s

$query = Calendar::find()->where(['id'=>Yii::$app->user->getId()]);

and

$query->andFilterWhere([
            'id' => $this->id,
            'date' => $this->calories,
            'val' => $this->peak_heartrate,
        ]);

it’s

$query->andFilterWhere([
            'id' => $this->id,
            'date' => $this->date,
            'val' => $this->val,
        ]);

But it still doesn’t work.
Any thoughts??