Yii 2 Basic Final Demo.pdf


Preview of PDF document yii-2-basic-final-demo.pdf

Page 1 2 34560

Text preview


การตั้งชื่อ controller .........................................................................................................36
Action คืออะไร................................................................................................................37
การเรี ยกใช้งาน ..................................................................................................................37
ผลการทางานของ Action ...................................................................................................38
การใช้งานพารามิเตอร์ .........................................................................................................38
ข้อแนะนาในการใช้งาน .......................................................................................................40
Model ........................................................................................................................................41
การสร้าง Model ...............................................................................................................42
Attribute ........................................................................................................................43
Attribute Label ..............................................................................................................43
Scenarios ......................................................................................................................44
การตรวจสอบค่าที่เข้ามา ......................................................................................................45
Massive Assignment ....................................................................................................46
View ..........................................................................................................................................48
การสร้าง view ..................................................................................................................49
ทาความรู ้จกั กับ เลเอาท์ .......................................................................................................49
การใช้งาน Block ..............................................................................................................51
View Component ..........................................................................................................52
Active Form คืออะไร ......................................................................................................52
การตั้งชื่อของหน้า ..............................................................................................................56
การตั้ง meta tags ............................................................................................................56
Event ของ View ..............................................................................................................56
แนวทางการใช้งาน .............................................................................................................57
Modules ....................................................................................................................................58
การสร้าง Modules ...........................................................................................................60