update gán lịch trình cho nhân viên
This commit is contained in:
22
widgets/ScheduleDepartment.php
Normal file
22
widgets/ScheduleDepartment.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace app\widgets;
|
||||
|
||||
use yii\base\Widget;
|
||||
|
||||
class ScheduleDepartment extends Widget {
|
||||
|
||||
public $pid;
|
||||
|
||||
public function init() {
|
||||
parent::init();
|
||||
}
|
||||
|
||||
public function run() {
|
||||
|
||||
return $this->render("schedule-department", [
|
||||
"lists" => \app\models\Department::find()->andWhere(['pid' => $this->pid])->all()
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user