โค้ด ของส่วน controller หรือ View
สามารถใช้
โค้ด: เลือกทั้งหมด
$controllerId = Yii::app()->controller->id;
//or
$controllerId = $this->getId();
Moderator: mindphp, ผู้ดูแลกระดาน
โค้ด: เลือกทั้งหมด
$controllerId = Yii::app()->controller->id;
//or
$controllerId = $this->getId();
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 73